Class CancelDecoderException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.netty.handler.codec.CodecException
io.netty.handler.codec.DecoderException
com.viaversion.viaversion.exception.CancelDecoderException
All Implemented Interfaces:
CancelCodecException, 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:
  • Field Details

  • Constructor Details

    • CancelDecoderException

      public CancelDecoderException()
    • CancelDecoderException

      public CancelDecoderException(String message, Throwable cause)
    • CancelDecoderException

      public CancelDecoderException(String message)
    • CancelDecoderException

      public CancelDecoderException(Throwable cause)
  • Method Details

    • generate

      public static CancelDecoderException generate(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