Package io.netty.handler.codec.http2
Enum Http2Error
- All Implemented Interfaces:
Serializable
,Comparable<Http2Error>
,java.lang.constant.Constable
All error codes identified by the HTTP/2 spec.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
code()
Gets the code for this error used on the wire.static Http2Error
valueOf
(long value) Returns the enum constant of this type with the specified name.static Http2Error
Returns the enum constant of this type with the specified name.static Http2Error[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NO_ERROR
-
PROTOCOL_ERROR
-
INTERNAL_ERROR
-
FLOW_CONTROL_ERROR
-
SETTINGS_TIMEOUT
-
STREAM_CLOSED
-
FRAME_SIZE_ERROR
-
REFUSED_STREAM
-
CANCEL
-
COMPRESSION_ERROR
-
CONNECT_ERROR
-
ENHANCE_YOUR_CALM
-
INADEQUATE_SECURITY
-
HTTP_1_1_REQUIRED
-
-
Field Details
-
code
private final long code -
INT_TO_ENUM_MAP
-
-
Constructor Details
-
Http2Error
private Http2Error(long code)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
code
public long code()Gets the code for this error used on the wire. -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-