Class CancelDecoderException

  • All Implemented Interfaces:
    CancelCodecException, java.io.Serializable

    public class CancelDecoderException
    extends io.netty.handler.codec.DecoderException
    implements CancelCodecException
    Thrown during packet decoding when an incoming packet should be cancelled. Specifically extends DecoderException to prevent netty from wrapping the exception.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CancelDecoderException generate​(java.lang.Throwable cause)
      Returns a cached CancelDecoderException 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

      • CancelDecoderException

        public CancelDecoderException()
      • CancelDecoderException

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

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

        public CancelDecoderException​(java.lang.Throwable cause)
    • Method Detail

      • generate

        public static CancelDecoderException generate​(java.lang.Throwable cause)
        Returns a cached CancelDecoderException or a new instance when ViaManager.isDebug() is true.
        Parameters:
        cause - cause for being used when a new instance is creeated
        Returns:
        a CancelDecoderException instance