Class CancelException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.viaversion.viaversion.exception.CancelException
All Implemented Interfaces:
Serializable

public class CancelException extends Exception
Thrown during packet transformation to cancel the packet. Internally catched to then throw the appropriate CodecException for Netty's handler.
See Also:
  • Field Details

  • Constructor Details

    • CancelException

      public CancelException()
    • CancelException

      public CancelException(String message)
    • CancelException

      public CancelException(String message, Throwable cause)
    • CancelException

      public CancelException(Throwable cause)
    • CancelException

      public CancelException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
  • Method Details

    • generate

      public static CancelException generate()
      Returns a cached CancelException or a new instance when ViaManager.isDebug() is true.
      Returns:
      a CancelException instance