Exception: Arf::Wire::StreamCanceledError
- 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) ⇒ StreamCanceledError
constructor
A new instance of StreamCanceledError.
Constructor Details
#initialize(reason) ⇒ StreamCanceledError
Returns a new instance of StreamCanceledError.
51 52 53 54 |
# File 'lib/arf/wire/errors.rb', line 51 def initialize(reason) @reason = reason super("Stream canceled: #{Wire.error_code_to_string(reason)}") end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
49 50 51 |
# File 'lib/arf/wire/errors.rb', line 49 def reason @reason end |