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:
java.io.Serializable
public final class ArcGISRuntimeException extends java.lang.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 java.lang.String
getAdditionalMessage()
Gets a string with additional information about the error.java.lang.Throwable
getCause()
int
getErrorCode()
Gets an integer error code for this ArcGISRuntimeException.ArcGISRuntimeException.ErrorDomain
getErrorDomain()
Gets the domain of where the error occurred.java.lang.String
getMessage()
java.lang.String
toString()
-
-
-
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 java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getAdditionalMessage
public java.lang.String getAdditionalMessage()
Gets a string with additional information about the error.- Returns:
- a string with additional information about the error
- Since:
- 100.0.0
-
getCause
public java.lang.Throwable getCause()
- Overrides:
getCause
in classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-