Exception: Arf::Wire::StreamCanceledError

Inherits:
WireError show all
Defined in:
lib/arf/wire/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



49
50
51
# File 'lib/arf/wire/errors.rb', line 49

def reason
  @reason
end