Exception: HookSniff::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- HookSniff::NetworkError
- Defined in:
- lib/hooksniff/errors.rb
Overview
Network error — connection failed
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = "Network error") ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(message = "Network error") ⇒ NetworkError
Returns a new instance of NetworkError.
153 154 155 156 |
# File 'lib/hooksniff/errors.rb', line 153 def initialize( = "Network error") @code = 0 super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
152 153 154 |
# File 'lib/hooksniff/errors.rb', line 152 def code @code end |