Class CancelEncoderException

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

    public class CancelEncoderException
    extends io.netty.handler.codec.EncoderException
    implements CancelCodecException
    Thrown during packet encoding when an outgoing packet should be cancelled. Specifically extends EncoderException 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 CancelEncoderException generate​(java.lang.Throwable cause)
      Returns a cached CancelEncoderException 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

      • CancelEncoderException

        public CancelEncoderException()
      • CancelEncoderException

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

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

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

      • generate

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