Exception: Nahook::NetworkError
- Defined in:
- lib/nahook/errors.rb
Overview
Raised when a network-level failure occurs (no HTTP response received).
Instance Attribute Summary collapse
-
#original_error ⇒ Exception
readonly
The underlying error that caused this failure.
Instance Method Summary collapse
-
#initialize(original_error) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(original_error) ⇒ NetworkError
Returns a new instance of NetworkError.
80 81 82 83 |
# File 'lib/nahook/errors.rb', line 80 def initialize(original_error) @original_error = original_error super("Network error: #{original_error.}") end |
Instance Attribute Details
#original_error ⇒ Exception (readonly)
Returns the underlying error that caused this failure.
77 78 79 |
# File 'lib/nahook/errors.rb', line 77 def original_error @original_error end |