Class APIException

  • All Implemented Interfaces:
    java.io.Serializable

    public class APIException
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      APIException​(long handle, int error, int type, byte[] packet)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorNumber()  
      byte[] getFailedPacket()  
      int getPacketType()  
      static java.lang.String getPacketTypeName​(int type)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • APIException

        public APIException​(long handle,
                            int error,
                            int type,
                            byte[] packet)
    • Method Detail

      • toString

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

        public final int getErrorNumber()
      • getPacketType

        public final int getPacketType()
      • getFailedPacket

        public final byte[] getFailedPacket()
      • getPacketTypeName

        public static java.lang.String getPacketTypeName​(int type)