Class FrameException

All Implemented Interfaces:
Serializable

public final class FrameException extends QuicException
A connection error caused by a received frame, carrying the frame type for the Frame Type field of the CONNECTION_CLOSE frame that reports it (RFC 9000 section 19.19).
See Also:
  • Constructor Details

    • FrameException

      public FrameException(long code, long frameType, String reason)
      A frame error.
      Parameters:
      code - the transport error code, such as FRAME_ENCODING_ERROR
      frameType - the type code of the offending frame, or 0 if it could not be read
      reason - the reason phrase
  • Method Details

    • frameType

      public long frameType()
      The type code of the frame that caused the error.
      Returns:
      the frame type, or 0 if it could not be read