Class Http2Exception.CompositeStreamException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.netty.handler.codec.http2.Http2Exception
io.netty.handler.codec.http2.Http2Exception.CompositeStreamException
- All Implemented Interfaces:
Serializable, Iterable<Http2Exception.StreamException>
- Enclosing class:
Http2Exception
public static final class Http2Exception.CompositeStreamException
extends Http2Exception
implements Iterable<Http2Exception.StreamException>
Provides the ability to handle multiple stream exceptions with one throw statement.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Http2Exception
Http2Exception.ClosedStreamCreationException, Http2Exception.CompositeStreamException, Http2Exception.HeaderListSizeException, Http2Exception.ShutdownHint, Http2Exception.StreamExceptionModifier and TypeClassDescriptionstatic final classUsed when a stream creation attempt fails but may be because the stream was previously closed.static final classProvides the ability to handle multiple stream exceptions with one throw statement.static final classstatic enumProvides a hint as to if shutdown is justified, what type of shutdown should be executed.static classRepresents an exception that can be isolated to a single stream (as opposed to the entire connection). -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Http2Exception
closedStreamError, connectionError, connectionError, error, headerListSizeError, isStreamError, shutdownHint, streamError, streamError, streamIdModifier and TypeMethodDescriptionstatic Http2ExceptionclosedStreamError(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.static Http2ExceptionconnectionError(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.static Http2ExceptionconnectionError(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()static Http2ExceptionheaderListSizeError(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.static booleanCheck if an exception is isolated to a single stream or the entire connection.Provide a hint as to what type of shutdown should be executed.static Http2ExceptionstreamError(int id, Http2Error error, String fmt, Object... args) Use if an error which can be isolated to a single stream has occurred.static Http2ExceptionstreamError(int id, Http2Error error, Throwable cause, String fmt, Object... args) Use if an error which can be isolated to a single stream has occurred.static intGet the stream id associated with an exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
CompositeStreamException
-
-
Method Details
-
add
-
iterator
- Specified by:
iteratorin interfaceIterable<Http2Exception.StreamException>
-