class Protocol::HTTP2::ProtocolError

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

def self.for(code)

@returns [ProtocolError] The protocol error.
@parameter code [Integer] The HTTP/2 error code.
Build a protocol error for a given HTTP/2 error code.
def self.for(code)
	return self.new(Error.message_for(code), code)
end

def initialize(message, code = PROTOCOL_ERROR)

@parameter code [Integer] The HTTP/2 error code.
@parameter message [String] The error message.
Initialize a protocol error with message and error code.
def initialize(message, code = PROTOCOL_ERROR)
	super(message)
	
	@code = code
end