class Protocol::HTTP2::ProtocolError

Raised by stream or connection handlers, results in GOAWAY frame which signals termination of the current connection. You cannot recover from this exception, or any exceptions subclassed from it.

Attributes

code[R]

Public Class Methods

new(message, code = PROTOCOL_ERROR) click to toggle source
Calls superclass method
# File lib/protocol/http2/error.rb, line 80
def initialize(message, code = PROTOCOL_ERROR)
        super(message)
        
        @code = code
end