Exception: Arf::Wire::ConnectionResetError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason, details = nil) ⇒ ConnectionResetError

Returns a new instance of ConnectionResetError.



60
61
62
63
64
65
66
67
68
# File 'lib/arf/wire/errors.rb', line 60

def initialize(reason, details = nil)
  @reason = reason
  @details = details
  super(if details
          "Connection reset: #{Wire.error_code_to_string(reason)} #{details}"
        else
          "Connection reset: #{Wire.error_code_to_string(reason)}"
        end)
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



58
59
60
# File 'lib/arf/wire/errors.rb', line 58

def details
  @details
end

#reasonObject (readonly)

Returns the value of attribute reason.



58
59
60
# File 'lib/arf/wire/errors.rb', line 58

def reason
  @reason
end