Exception: HTTP::Protocol::ProtocolError
- 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
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
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(, code = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
47 48 49 |
# File 'lib/http/protocol/error.rb', line 47 def code @code end |