Exception: Nahook::NetworkError

Inherits:
Error
  • Object
show all
Defined in:
lib/nahook/errors.rb

Overview

Raised when a network-level failure occurs (no HTTP response received).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_error) ⇒ NetworkError

Returns a new instance of NetworkError.

Parameters:

  • original_error (Exception)

    the original exception



80
81
82
83
# File 'lib/nahook/errors.rb', line 80

def initialize(original_error)
  @original_error = original_error
  super("Network error: #{original_error.message}")
end

Instance Attribute Details

#original_errorException (readonly)

Returns the underlying error that caused this failure.

Returns:

  • (Exception)

    the underlying error that caused this failure



77
78
79
# File 'lib/nahook/errors.rb', line 77

def original_error
  @original_error
end