Uses of Enum Class
io.github.mahmoudimus.http2.ErrorCode
Packages that use ErrorCode
-
Uses of ErrorCode in io.github.mahmoudimus.http2
Methods in io.github.mahmoudimus.http2 that return ErrorCodeModifier and TypeMethodDescriptionFrame.GoAway.error()Interprets the raw wire error code.Frame.RstStream.error()Interprets the raw wire error code.Http2Exception.errorCode()The code to send in GOAWAY (connection error) or RST_STREAM (stream error).static ErrorCodeErrorCode.forCode(int code) The error code for a wire value.static ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]ErrorCode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in io.github.mahmoudimus.http2 with parameters of type ErrorCodeModifier and TypeMethodDescriptionstatic Http2ExceptionHttp2Exception.connectionError(ErrorCode errorCode, String message) An error that ends the connection.static Http2ExceptionHttp2Exception.streamError(int streamId, ErrorCode errorCode, String message) An error that ends only the given stream.voidFrameWriter.writeGoAway(int lastStreamId, ErrorCode error, byte[] debugData) Writes a connection shutdown frame.voidFrameWriter.writeRstStream(int streamId, ErrorCode error) Terminates one stream.Constructors in io.github.mahmoudimus.http2 with parameters of type ErrorCodeModifierConstructorDescriptionCreates a frame with the given error code.protectedHttp2Exception(ErrorCode errorCode, int streamId, boolean connectionError, String message) Creates an error with an explicit protocol scope.Creates a frame with the given error code.