Exception: Arf::Wire::StreamResetError
- Defined in:
- lib/arf/wire/errors.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ StreamResetError
constructor
A new instance of StreamResetError.
Constructor Details
#initialize(reason) ⇒ StreamResetError
Returns a new instance of StreamResetError.
42 43 44 45 |
# File 'lib/arf/wire/errors.rb', line 42 def initialize(reason) @reason = reason super("Stream reset: #{Wire.error_code_to_string(reason)}") end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
40 41 42 |
# File 'lib/arf/wire/errors.rb', line 40 def reason @reason end |