Exception: Shortwave::Facade::RemoteError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Shortwave::Facade::RemoteError
- Extended by:
- Forwardable
- Defined in:
- lib/shortwave/facade/remote.rb
Overview
Wraps a RestClient::RequestFailed exception, and delegates message
, http_code
and response
to the wrapped exception.
This class is mainly provided for api stability in case we switch from using RestClient.
Instance Method Summary collapse
-
#initialize(cause) ⇒ RemoteError
constructor
A new instance of RemoteError.
Constructor Details
#initialize(cause) ⇒ RemoteError
Returns a new instance of RemoteError.
47 48 49 |
# File 'lib/shortwave/facade/remote.rb', line 47 def initialize(cause) @cause = cause end |