Class QuicException

All Implemented Interfaces:
Serializable

public class QuicException extends RuntimeException
A QUIC exception carrying the error code, the error reason, and the frame type that caused the error.
See Also:
  • Constructor Details

    • QuicException

      public QuicException(ErrorCode code, String reason)
      Creates a new instance with the given error code and reason, and frame type 0x00.
      Parameters:
      code - the error code
      reason - the error reason
    • QuicException

      public QuicException(ErrorCode code, String reason, long frameType)
      Creates a new instance with the given error code, reason, and frame type.
      Parameters:
      code - the error code
      reason - the error reason
      frameType - the frame type that caused the error
    • QuicException

      public QuicException(ErrorCode code, String reason, long frameType, Throwable cause)
      Creates a new instance with the given error code, reason, frame type and nested cause.
      Parameters:
      code - the error code
      reason - the error reason
      frameType - the frame type that caused the error
      cause -
  • Method Details

    • getErrorCode

      public ErrorCode getErrorCode()
      Returns:
      the error code
    • getFrameType

      public long getFrameType()
      Returns:
      the frame type that caused the error
    • toString

      public String toString()
      Overrides:
      toString in class Throwable