Exception: Arf::Wire::ConnectionResetError
- Defined in:
- lib/arf/wire/errors.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason, details = nil) ⇒ ConnectionResetError
constructor
A new instance of ConnectionResetError.
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
#details ⇒ Object (readonly)
Returns the value of attribute details.
58 59 60 |
# File 'lib/arf/wire/errors.rb', line 58 def details @details end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
58 59 60 |
# File 'lib/arf/wire/errors.rb', line 58 def reason @reason end |