Package io.github.mahmoudimus.quic
Class QuicStreamException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.github.mahmoudimus.quic.QuicStreamException
- All Implemented Interfaces:
Serializable
A stream operation failed because the peer abandoned the stream: it reset the stream (RESET_STREAM,
seen by a reader) or asked this side to stop sending (STOP_SENDING, seen by a writer).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHow the peer abandoned the stream. -
Constructor Summary
ConstructorsConstructorDescriptionQuicStreamException(QuicStreamException.Kind kind, long errorCode) An exception. -
Method Summary
Modifier and TypeMethodDescriptionlongThe peer's application error code.kind()How the peer abandoned the stream.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
QuicStreamException
An exception.- Parameters:
kind- how the peer abandoned the streamerrorCode- the peer's application error code
-
-
Method Details
-
kind
How the peer abandoned the stream.- Returns:
- the kind
-
errorCode
public long errorCode()The peer's application error code.- Returns:
- the code
-