Exception: Hydra::RemoteIdentifier::RemoteServiceError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/hydra/remote_identifier/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(exception, uri, payload) ⇒ RemoteServiceError

Returns a new instance of RemoteServiceError.



10
11
12
13
14
# File 'lib/hydra/remote_identifier/exceptions.rb', line 10

def initialize(exception, uri, payload)
  @exception = exception
  @uri = uri
  @payload = payload
end

Instance Method Details

#to_sObject



16
17
18
19
20
21
22
23
# File 'lib/hydra/remote_identifier/exceptions.rb', line 16

def to_s
  text = ""
  text << "response.code: #{response_code.inspect}\n"
  text << "response.body: #{response_body.inspect}\n"
  text << "\n"
  text << "request.uri: #{request_sanitized_uri.inspect}\n"
  text << "request.payload: #{request_sanitized_paylod.inspect}\n"
end