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 Summary
-
Constructor Summary
ConstructorDescriptionCancelDecoderException
(String message) CancelDecoderException
(String message, Throwable cause) CancelDecoderException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic CancelDecoderException
Returns a cached CancelDecoderException or a new instance whenViaManager.isDebug()
is true.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CACHED
-
-
Constructor Details
-
CancelDecoderException
public CancelDecoderException() -
CancelDecoderException
-
CancelDecoderException
-
CancelDecoderException
-
-
Method Details
-
generate
Returns a cached CancelDecoderException or a new instance whenViaManager.isDebug()
is true.- Parameters:
cause
- cause for being used when a new instance is creeated- Returns:
- a CancelDecoderException instance
-