java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.miaixz.bus.http.metric.http.StreamException
- All Implemented Interfaces:
Serializable
An exception thrown when an HTTP/2 stream is reset without damaging the underlying socket.
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Http2ErrorCodeThe error code that prompted this exception. -
Constructor Summary
ConstructorsConstructorDescriptionStreamException(Http2ErrorCode errorCode) Constructs a newStreamExceptionwith the specified error code. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorCode
The error code that prompted this exception.
-
-
Constructor Details
-
StreamException
Constructs a newStreamExceptionwith the specified error code.- Parameters:
errorCode- The error code indicating the reason for the stream reset.
-