Enum Class StreamException.Kind
- All Implemented Interfaces:
Serializable,Comparable<StreamException.Kind>,Constable
- Enclosing class:
StreamException
Why the operation failed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo progress is possible now: a write is limited by flow control or the send window, or a read found no data.The stream was never opened, or was already finished, reset, stopped or released.An ordered read was attempted after an unordered one.The peer reset the stream with RESET_STREAM;StreamException.errorCode()is its error code.The peer sent STOP_SENDING;StreamException.errorCode()is its error code. -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamException.KindReturns the enum constant of this class with the specified name.static StreamException.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCKED
No progress is possible now: a write is limited by flow control or the send window, or a read found no data. A laterStreamEvent.WritableorStreamEvent.Readablesays when to retry. -
STOPPED
The peer sent STOP_SENDING;StreamException.errorCode()is its error code. -
RESET
The peer reset the stream with RESET_STREAM;StreamException.errorCode()is its error code. -
CLOSED_STREAM
The stream was never opened, or was already finished, reset, stopped or released. -
ILLEGAL_ORDERED_READ
An ordered read was attempted after an unordered one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-