Exception: Orcid::RemoteServiceError

Inherits:
RuntimeError
  • 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.



12
13
14
15
16
17
18
19
20
# File 'lib/orcid/exceptions.rb', line 12

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