Package io.github.mahmoudimus.quic.frame
Class FrameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.mahmoudimus.quic.QuicException
io.github.mahmoudimus.quic.frame.FrameException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class io.github.mahmoudimus.quic.QuicException
AEAD_LIMIT_REACHED, APPLICATION_ERROR, CONNECTION_ID_LIMIT_ERROR, CONNECTION_REFUSED, CRYPTO_BUFFER_EXCEEDED, CRYPTO_ERROR, FINAL_SIZE_ERROR, FLOW_CONTROL_ERROR, FRAME_ENCODING_ERROR, INTERNAL_ERROR, INVALID_TOKEN, KEY_UPDATE_ERROR, NO_ERROR, NO_VIABLE_PATH, PROTOCOL_VIOLATION, STREAM_LIMIT_ERROR, STREAM_STATE_ERROR, TRANSPORT_PARAMETER_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongThe type code of the frame that caused the error.Methods inherited from class io.github.mahmoudimus.quic.QuicException
code, tlsAlertMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FrameException
A frame error.- Parameters:
code- the transport error code, such asFRAME_ENCODING_ERRORframeType- the type code of the offending frame, or 0 if it could not be readreason- 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
-