public class Http2Exception
extends IOException
| Constructor and Description |
|---|
Http2Exception(int streamId,
Http2ErrorCode error,
String message)
Create a new instance.
|
Http2Exception(int streamId,
Http2ErrorCode error,
String message,
Throwable cause)
Create a new instance.
|
Http2Exception(int streamId,
Http2ErrorCode error,
Throwable cause)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Http2ErrorCode |
errorCode()
Get the error code which caused this exception.
|
int |
streamId()
The Stream Identifier associated with
the exception.
|
public Http2Exception(int streamId,
Http2ErrorCode error,
String message)
streamId - Stream Identifier the
exception relates to. 0 for the connection stream or > 0 for a non-connection stream.error - The error code.message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).public Http2Exception(int streamId,
Http2ErrorCode error,
Throwable cause)
streamId - Stream Identifier the
exception relates to. 0 for the connection stream or > 0 for a non-connection stream.error - The error code.cause - The original cause which lead to this exception.public Http2Exception(int streamId,
Http2ErrorCode error,
String message,
Throwable cause)
streamId - Stream Identifier the
exception relates to. 0 for the connection stream or > 0 for a non-connection stream.error - The error code.message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).cause - The original cause which lead to this exception.public final Http2ErrorCode errorCode()
public final int streamId()
0 for the connection stream, > 0 for a non-connection stream, or < 0 if unknown.