Http2Error Type — netty Architecture
Architecture documentation for the Http2Error type/interface in Http2Error.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0ed101c0_bd61_a726_0ba9_77ce693e4ab5["Http2Error"] 92c54ea1_08ca_efef_3441_1de07feff17b["Http2Error.java"] 0ed101c0_bd61_a726_0ba9_77ce693e4ab5 -->|defined in| 92c54ea1_08ca_efef_3441_1de07feff17b style 0ed101c0_bd61_a726_0ba9_77ce693e4ab5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2Error.java lines 21–62
public enum Http2Error {
NO_ERROR(0x0),
PROTOCOL_ERROR(0x1),
INTERNAL_ERROR(0x2),
FLOW_CONTROL_ERROR(0x3),
SETTINGS_TIMEOUT(0x4),
STREAM_CLOSED(0x5),
FRAME_SIZE_ERROR(0x6),
REFUSED_STREAM(0x7),
CANCEL(0x8),
COMPRESSION_ERROR(0x9),
CONNECT_ERROR(0xA),
ENHANCE_YOUR_CALM(0xB),
INADEQUATE_SECURITY(0xC),
HTTP_1_1_REQUIRED(0xD);
private final long code;
private static final Http2Error[] INT_TO_ENUM_MAP;
static {
Http2Error[] errors = values();
Http2Error[] map = new Http2Error[errors.length];
for (Http2Error error : errors) {
map[(int) error.code()] = error;
}
INT_TO_ENUM_MAP = map;
}
Http2Error(long code) {
this.code = code;
}
/**
* Gets the code for this error used on the wire.
*/
public long code() {
return code;
}
public static Http2Error valueOf(long value) {
return value >= INT_TO_ENUM_MAP.length || value < 0 ? null : INT_TO_ENUM_MAP[(int) value];
}
}
Source
Frequently Asked Questions
What is the Http2Error type?
Http2Error is a type/interface in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2Error.java.
Where is Http2Error defined?
Http2Error is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2Error.java at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free