Package com.esri.arcgisruntime
Class ArcGISRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.esri.arcgisruntime.ArcGISRuntimeException
-
- All Implemented Interfaces:
Serializable
public final class ArcGISRuntimeException extends RuntimeException
An exception that represents an error in the ArcGIS Runtime. More specific information of where the error occurred and what caused it are provided viagetErrorDomain()
andgetErrorCode()
.- Since:
- 100.0.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArcGISRuntimeException.ErrorDomain
Defines an enumeration of domains of where errors occur.
-
Field Summary
Fields Modifier and Type Field Description static int
ERROR_CODE_CHECK_CAUSE
An error code that indicates that further error information are provided ingetCause()
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdditionalMessage()
Gets a string with additional information about the error.Throwable
getCause()
int
getErrorCode()
Gets an integer error code for this ArcGISRuntimeException.ArcGISRuntimeException.ErrorDomain
getErrorDomain()
Gets the domain of where the error occurred.String
getMessage()
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
ERROR_CODE_CHECK_CAUSE
public static final int ERROR_CODE_CHECK_CAUSE
An error code that indicates that further error information are provided ingetCause()
. Example:Throwable cause = null; if (arcGISRuntimeException.getErrorCode() == ArcGISRuntimeException.ERROR_CODE_CHECK_CAUSE) { cause = arcGISRuntimeException.getCause(); }
- Since:
- 100.0.0
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Gets an integer error code for this ArcGISRuntimeException. The error code is unique only within this ArcGISRuntimeException's error domain, seegetErrorDomain()
.- Returns:
- the error code
- Since:
- 100.0.0
-
getErrorDomain
public ArcGISRuntimeException.ErrorDomain getErrorDomain()
Gets the domain of where the error occurred.- Returns:
- the domain of where the error occurred
- Since:
- 100.0.0
- See Also:
ArcGISRuntimeException.ErrorDomain
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getAdditionalMessage
public String getAdditionalMessage()
Gets a string with additional information about the error.- Returns:
- a string with additional information about the error
- Since:
- 100.0.0
-
-