Exception: Aikido::Zen::NetworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aikido/zen/errors.rb

Overview

Wrapper for all low-level network errors communicating with the API. You can access the original error by calling #cause.

Instance Method Summary collapse

Constructor Details

#initialize(request, cause = nil) ⇒ NetworkError

Returns a new instance of NetworkError.



24
25
26
27
28
# File 'lib/aikido/zen/errors.rb', line 24

def initialize(request, cause = nil)
  @request = request.dup

  super("Error in #{request.method} #{request.path}: #{cause.message}")
end