Class CancelException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CancelException
    extends java.lang.Exception
    Thrown during packet transformation to cancel the packet. Internally catched to then throw the appropriate CodecException for Netty's handler.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CancelException()  
      CancelException​(java.lang.String message)  
      CancelException​(java.lang.String message, java.lang.Throwable cause)  
      CancelException​(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)  
      CancelException​(java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CancelException generate()
      Returns a cached CancelException or a new instance when ViaManager.isDebug() is true.
      • 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
    • Constructor Detail

      • CancelException

        public CancelException()
      • CancelException

        public CancelException​(java.lang.String message)
      • CancelException

        public CancelException​(java.lang.String message,
                               java.lang.Throwable cause)
      • CancelException

        public CancelException​(java.lang.Throwable cause)
      • CancelException

        public CancelException​(java.lang.String message,
                               java.lang.Throwable cause,
                               boolean enableSuppression,
                               boolean writableStackTrace)
    • Method Detail

      • generate

        public static CancelException generate()
        Returns a cached CancelException or a new instance when ViaManager.isDebug() is true.
        Returns:
        a CancelException instance