Exception: FamilySearch::Error::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/familysearch/error.rb

Overview

To be raised if there is any problem with an HTTP request, meaning 40x-50x error.

Direct Known Subclasses

BadCredentials

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = {}) ⇒ ClientError

Allows raising an error and having the error keep the response object with it for debugging purposes.



8
9
10
# File 'lib/familysearch/error.rb', line 8

def initialize(response = {})
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/familysearch/error.rb', line 6

def response
  @response
end