Class StreamException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.mahmoudimus.quic.connection.StreamException
- All Implemented Interfaces:
Serializable
An application-level stream operation that cannot proceed. These are not connection errors:
the connection stays open.
StreamException.Kind.BLOCKED is routine flow control, so the exception has no
stack trace.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAn exception without an error code.StreamException(StreamException.Kind kind, long errorCode) An exception. -
Method Summary
Modifier and TypeMethodDescriptionlongThe peer's application error code.kind()Why the operation failed.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamException
An exception.- Parameters:
kind- why the operation failederrorCode- the peer's application error code forStreamException.Kind.STOPPEDandStreamException.Kind.RESET, otherwise -1
-
StreamException
An exception without an error code.- Parameters:
kind- why the operation failed
-
-
Method Details
-
kind
Why the operation failed.- Returns:
- the kind
-
errorCode
public long errorCode()The peer's application error code.- Returns:
- the code for
StreamException.Kind.STOPPEDandStreamException.Kind.RESET, otherwise -1
-