Exception: FamilySearch::Error::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- FamilySearch::Error::ClientError
- 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
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ ClientError
constructor
Allows raising an error and having the error keep the response object with it for debugging purposes.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/familysearch/error.rb', line 6 def response @response end |