Module bus.http

Class StreamException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.miaixz.bus.http.metric.http.StreamException
All Implemented Interfaces:
Serializable

public final class StreamException extends IOException
An exception thrown when an HTTP/2 stream is reset without damaging the underlying socket.
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Field Details

    • errorCode

      public final Http2ErrorCode errorCode
      The error code that prompted this exception.
  • Constructor Details

    • StreamException

      public StreamException(Http2ErrorCode errorCode)
      Constructs a new StreamException with the specified error code.
      Parameters:
      errorCode - The error code indicating the reason for the stream reset.