Exception: Shortwave::Facade::RemoteError

Inherits:
RuntimeError
  • Object
show all
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

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