Exception: Orcid::RemoteServiceError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/orcid/exceptions.rb

Overview

Because in trouble shooting what all goes into this remote call, you may very well want all of this.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ RemoteServiceError

Returns a new instance of RemoteServiceError.



34
35
36
37
38
39
40
41
42
# File 'lib/orcid/exceptions.rb', line 34

def initialize(options)
  text = []
  text << "-- Client --"
  append_client_options(options[:client], text)
  append_token(options[:token], text)
  append_request(options, text)
  append_response(options, text)
  super(text.join("\n"))
end