Class CancelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.viaversion.viaversion.exception.CancelException
- All Implemented Interfaces:
Serializable
Thrown during packet transformation to cancel the packet.
Internally caught to then throw the appropriate
CodecException for Netty's handler.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCancelException(String message) CancelException(String message, Throwable cause) CancelException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) CancelException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic CancelExceptiongenerate()Returns a cached CancelException 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
-
CancelException
public CancelException() -
CancelException
-
CancelException
-
CancelException
-
CancelException
-
-
Method Details
-
generate
Returns a cached CancelException or a new instance whenViaManager.isDebug()is true.- Returns:
- a CancelException instance
-