Class CipException

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        CipException​(byte code, short[] extra, java.lang.String msg)  
      protected CipException​(byte code, short[] extra, java.lang.String msg, boolean trace)
      Allow creation of instances with no backtrace, via this constructor with trace set false.
        CipException​(byte code, short[] extra, java.lang.String msg, java.lang.Throwable reason)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String codesString()  
      static CipException create​(byte code, short[] extra)
      Construct a particular exception with no backtrace.
      static CipException decode​(java.nio.ByteBuffer source)
      Exceptions decoded from bytes are presumed to have come through a communications channel, so are created without a backtrace.
      byte getCode()  
      short[] getExtra()  
      void putException​(java.nio.ByteBuffer dest)  
      static void registerHandler​(java.lang.Class<? extends CipException> handler)  
      • Methods inherited from class java.lang.Throwable

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

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

      • sLogger

        public static final org.slf4j.Logger sLogger
      • code

        protected byte code
      • extra

        protected short[] extra
    • Constructor Detail

      • CipException

        protected CipException​(byte code,
                               short[] extra,
                               java.lang.String msg,
                               boolean trace)
        Allow creation of instances with no backtrace, via this constructor with trace set false. A cause is not allowed in this mode.
        Parameters:
        code -
        extra -
        msg -
        trace -
      • CipException

        public CipException​(byte code,
                            short[] extra,
                            java.lang.String msg,
                            java.lang.Throwable reason)
      • CipException

        public CipException​(byte code,
                            short[] extra,
                            java.lang.String msg)
    • Method Detail

      • registerHandler

        public static void registerHandler​(java.lang.Class<? extends CipException> handler)
      • decode

        public static CipException decode​(java.nio.ByteBuffer source)
        Exceptions decoded from bytes are presumed to have come through a communications channel, so are created without a backtrace.
        Parameters:
        source -
        Returns:
      • create

        public static CipException create​(byte code,
                                          short[] extra)
        Construct a particular exception with no backtrace.
      • putException

        public void putException​(java.nio.ByteBuffer dest)
      • getCode

        public byte getCode()
      • getExtra

        public short[] getExtra()
      • codesString

        public java.lang.String codesString()