Class D2JapiException



  • public class D2JapiException
    extends java.lang.Exception
    General exception thrown by various Session calls when error code is received instead of expected response.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      D2JapiException​(java.lang.Enum<?> errorCode)  
      D2JapiException​(java.lang.String message, java.lang.Enum<?> errorCode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Enum<?> getErrorCode​()  
      java.lang.String toString​()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
    • Constructor Detail

      • D2JapiException

        public D2JapiException​(java.lang.Enum<?> errorCode)
      • D2JapiException

        public D2JapiException​(java.lang.String message,
                               java.lang.Enum<?> errorCode)
    • Method Detail

      • getErrorCode

        public java.lang.Enum<?> getErrorCode​()
      • toString

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