| Modifier and Type | Class and Description |
|---|---|
| public static class | Http2Exception.
Used when a stream creation attempt fails but may be because the stream was previously closed. |
| public static class | Http2Exception.
Provides the ability to handle multiple stream exceptions with one throw statement. |
| public static class | |
| public static enum | Http2Exception.
Provides a hint as to if shutdown is justified, what type of shutdown should be executed. |
| private static class | |
| public static class | Http2Exception.
Represents an exception that can be isolated to a single stream (as opposed to the entire connection). |
| Modifier and Type | Field and Description |
|---|---|
| private final Http2Error | |
| private static final long | |
| private final Http2Exception. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | Http2Exception(Http2Error error, String message, Throwable cause, Http2Exception.
|
| private | Http2Exception(Http2Error error, String message, Http2Exception.
|
| Modifier and Type | Method and Description |
|---|---|
| public static Http2Exception | Returns: An exception which can be translated into an HTTP/2 error.The type of error as defined by the HTTP/2 specification. error, String String with the content and format for the additional debug data. fmt, Object... Objects which fit into the format defined by args)fmt.Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection. |
| public static Http2Exception | Returns: An exception which can be translated into an HTTP/2 error.The type of error as defined by the HTTP/2 specification. error, String String with the content and format for the additional debug data. fmt, Object... Objects which fit into the format defined by args)fmt.Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection. |
| public static Http2Exception | Returns: An exception which can be translated into an HTTP/2 error.The type of error as defined by the HTTP/2 specification. error, Throwable The object which caused the error. cause, String String with the content and format for the additional debug data. fmt, Object... Objects which fit into the format defined by args)fmt.Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection. |
| public Http2Error | |
| private static String | |
| public static Http2Exception | Returns: If theid is not
Http2CodecUtil#CONNECTION_STREAM_ID then a HeaderListSizeException
will be returned. Otherwise the error is considered a connection error and a Http2Exception is
returned.The stream id for which the error is isolated to. id, Http2Error The type of error as defined by the HTTP/2 specification. error, boolean Whether this error was caught while decoding headers onDecode, String String with the content and format for the additional debug data. fmt, Object... Objects which fit into the format defined by args)fmt.A specific stream error resulting from failing to decode headers that exceeds the max header size list. |
| public static boolean | isStreamError(Http2Exception
The exception to check. e)Check if an exception is isolated to a single stream or the entire connection. |
| pack-priv static Http2Exception | newStatic(Http2Error error, String message, Http2Exception.
|
| public Http2Exception. | |
| public static Http2Exception | Returns: If theid is not
Http2CodecUtil#CONNECTION_STREAM_ID then a StreamException will be returned.
Otherwise the error is considered a connection error and a Http2Exception is returned.The stream id for which the error is isolated to. id, Http2Error The type of error as defined by the HTTP/2 specification. error, String String with the content and format for the additional debug data. fmt, Object... Objects which fit into the format defined by args)fmt.Use if an error which can be isolated to a single stream has occurred. |
| public static Http2Exception | Returns: If theid is not
Http2CodecUtil#CONNECTION_STREAM_ID then a StreamException will be returned.
Otherwise the error is considered a connection error and a Http2Exception is returned.The stream id for which the error is isolated to. id, Http2Error The type of error as defined by the HTTP/2 specification. error, Throwable The object which caused the error. cause, String String with the content and format for the additional debug data. fmt, Object... Objects which fit into the format defined by args)fmt.Use if an error which can be isolated to a single stream has occurred. |
| public static int | Returns: Http2CodecUtil#CONNECTION_STREAM_ID if e is a connection error.
Otherwise the stream id associated with the stream error.The exception to get the stream id for. e)Get the stream id associated with an exception. |
| error | back to summary |
|---|---|
| private final Http2Error error | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| shutdownHint | back to summary |
|---|---|
| private final Http2Exception. | |
| Http2Exception | back to summary |
|---|---|
| public Http2Exception(Http2Error error) | |
| Http2Exception | back to summary |
|---|---|
| public Http2Exception(Http2Error error, Http2Exception. | |
| Http2Exception | back to summary |
|---|---|
| public Http2Exception(Http2Error error, String message) | |
| Http2Exception | back to summary |
|---|---|
| public Http2Exception(Http2Error error, String message, Http2Exception. | |
| Http2Exception | back to summary |
|---|---|
| public Http2Exception(Http2Error error, String message, Throwable cause) | |
| Http2Exception | back to summary |
|---|---|
| public Http2Exception(Http2Error error, String message, Throwable cause, Http2Exception. | |
| Http2Exception | back to summary |
|---|---|
| private Http2Exception(Http2Error error, String message, Http2Exception. | |
| closedStreamError | back to summary |
|---|---|
| public static Http2Exception closedStreamError(Http2Error error, String fmt, Object... args) Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection.
| |
| connectionError | back to summary |
|---|---|
| public static Http2Exception connectionError(Http2Error error, String fmt, Object... args) Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection.
| |
| connectionError | back to summary |
|---|---|
| public static Http2Exception connectionError(Http2Error error, Throwable cause, String fmt, Object... args) Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection.
| |
| error | back to summary |
|---|---|
| public Http2Error error() | |
| formatErrorMessage | back to summary |
|---|---|
| private static String formatErrorMessage(String fmt, Object[] args) | |
| headerListSizeError | back to summary |
|---|---|
| public static Http2Exception headerListSizeError(int id, Http2Error error, boolean onDecode, String fmt, Object... args) A specific stream error resulting from failing to decode headers that exceeds the max header size list.
If the
| |
| isStreamError | back to summary |
|---|---|
| public static boolean isStreamError(Http2Exception e) Check if an exception is isolated to a single stream or the entire connection.
| |
| newStatic | back to summary |
|---|---|
| pack-priv static Http2Exception newStatic(Http2Error error, String message, Http2Exception. | |
| shutdownHint | back to summary |
|---|---|
| public Http2Exception. Provide a hint as to what type of shutdown should be executed. Note this hint may be ignored. | |
| streamError | back to summary |
|---|---|
| public static Http2Exception streamError(int id, Http2Error error, String fmt, Object... args) Use if an error which can be isolated to a single stream has occurred. If the
| |
| streamError | back to summary |
|---|---|
| public static Http2Exception streamError(int id, Http2Error error, Throwable cause, String fmt, Object... args) Use if an error which can be isolated to a single stream has occurred. If the
| |
| streamId | back to summary |
|---|---|
| public static int streamId(Http2Exception e) Get the stream id associated with an exception.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| ClosedStreamCreationException | back to summary |
|---|---|
| public ClosedStreamCreationException(Http2Error error) | |
| ClosedStreamCreationException | back to summary |
|---|---|
| public ClosedStreamCreationException(Http2Error error, String message) | |
| ClosedStreamCreationException | back to summary |
|---|---|
| public ClosedStreamCreationException(Http2Error error, String message, Throwable cause) | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Iterator |
| exceptions | back to summary |
|---|---|
| private final List<Http2Exception. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| CompositeStreamException | back to summary |
|---|---|
| public CompositeStreamException(Http2Error error, int initialCapacity) | |
| add | back to summary |
|---|---|
| public void add(Http2Exception. | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| decode | back to summary |
|---|---|
| private final boolean decode | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| HeaderListSizeException | back to summary |
|---|---|
| pack-priv HeaderListSizeException(int streamId, Http2Error error, String message, boolean decode) | |
| duringDecode | back to summary |
|---|---|
| public boolean duringDecode() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Http2Exception. | GRACEFUL_SHUTDOWN
Attempt to execute a "graceful" shutdown. |
| public static final Http2Exception. | HARD_SHUTDOWN
Close the channel immediately after a |
| public static final Http2Exception. | NO_SHUTDOWN
Do not shutdown the underlying channel. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Http2Exception. | |
| public static Http2Exception. |
| GRACEFUL_SHUTDOWN | back to summary |
|---|---|
| public static final Http2Exception. Attempt to execute a "graceful" shutdown. The definition of "graceful" is left to the implementation. An example of "graceful" would be wait for some amount of time until all active streams are closed. | |
| HARD_SHUTDOWN | back to summary |
|---|---|
| public static final Http2Exception. Close the channel immediately after a | |
| NO_SHUTDOWN | back to summary |
|---|---|
| public static final Http2Exception. Do not shutdown the underlying channel. | |
| ShutdownHint | back to summary |
|---|---|
| private ShutdownHint() | |
| valueOf | back to summary |
|---|---|
| public static Http2Exception. | |
| values | back to summary |
|---|---|
| public static Http2Exception. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | fillInStackTrace()
Overrides java. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| StacklessHttp2Exception | back to summary |
|---|---|
| pack-priv StacklessHttp2Exception(Http2Error error, String message, Http2Exception. | |
| fillInStackTrace | back to summary |
|---|---|
| public Throwable fillInStackTrace() Overrides java. Doc from java. Fills in the execution stack trace. This method records within this
If the stack trace of this | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides io. | |
| streamId | back to summary |
|---|---|
| private final int streamId | |
| StreamException | back to summary |
|---|---|
| pack-priv StreamException(int streamId, Http2Error error, String message) | |
| StreamException | back to summary |
|---|---|
| pack-priv StreamException(int streamId, Http2Error error, String message, Throwable cause) | |
| streamId | back to summary |
|---|---|
| public int streamId() | |