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
37 38 39 40 41 |
# File 'lib/http/protocol/error.rb', line 37 def initialize(, code = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
43 44 45 |
# File 'lib/http/protocol/error.rb', line 43 def code @code end |