java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.esri.arcgisruntime.ArcGISRuntimeException
- All Implemented Interfaces:
Serializable
An exception that represents an error in the ArcGIS Runtime. More specific information of where the error occurred
and what caused it are provided via
getErrorDomain()
and getErrorCode()
.- Since:
- 100.0.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Defines an enumeration of domains of where errors occur. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
An error code that indicates that further error information are provided ingetCause()
. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.getCause()
int
Gets an integer error code for this ArcGISRuntimeException.Gets the domain of where the error occurred.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_CODE_CHECK_CAUSE
public static final int ERROR_CODE_CHECK_CAUSEAn 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 Details
-
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
Gets the domain of where the error occurred.- Returns:
- the domain of where the error occurred
- Since:
- 100.0.0
- See Also:
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getAdditionalMessage
Deprecated, for removal: This API element is subject to removal in a future version.since 200.0.0, usegetMessage()
to access the full error information stringGets a string with additional information about the error.- Returns:
- a string with additional information about the error
- Since:
- 100.0.0
-
getCause
-
getMessage()
to access the full error information string