Exception: Aikido::Zen::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- Aikido::Zen::NetworkError
- 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
-
#initialize(request, cause = nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
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.}") end |