Class 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 via getErrorDomain() and getErrorCode().
    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 in getCause().
    • 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()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 in getCause(). 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, see getErrorDomain().
        Returns:
        the error code
        Since:
        100.0.0
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.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 class java.lang.Throwable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable