Exception: Arf::Wire::StreamResetError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



40
41
42
# File 'lib/arf/wire/errors.rb', line 40

def reason
  @reason
end