Exception: HTTP::Protocol::ProtocolError

Inherits:
Error
  • Object
show all
Defined in:
lib/http/protocol/error.rb

Overview

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.

Direct Known Subclasses

FlowControlError, FrameSizeError, InternalError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil) ⇒ ProtocolError

Returns a new instance of ProtocolError.



41
42
43
44
45
# File 'lib/http/protocol/error.rb', line 41

def initialize(message, code = nil)
	super(message)
	
	@code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



47
48
49
# File 'lib/http/protocol/error.rb', line 47

def code
  @code
end