Exception: Yoti::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/yoti/errors.rb

Overview

Raises exceptions related to API requests

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ RequestError

Returns a new instance of RequestError.



9
10
11
12
# File 'lib/yoti/errors.rb', line 9

def initialize(message, response = nil)
  super(append_response_message(message, response))
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/yoti/errors.rb', line 7

def response
  @response
end