Exception: Dnsimple::RequestError
- Defined in:
- lib/dnsimple/error.rb
Overview
RequestError is raised when an API request fails for an client, a server error or invalid request information.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attribute_errors ⇒ Object
readonly
Returns the value of attribute attribute_errors.
-
#http_response ⇒ Object
readonly
Returns the value of attribute http_response.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(http_response) ⇒ RequestError
Returns a new instance of RequestError.
12 13 14 15 16 |
# File 'lib/dnsimple/error.rb', line 12 def initialize(http_response) @http_response = http_response @attribute_errors = attribute_errors_from(http_response) super((http_response)) end |
Instance Attribute Details
#attribute_errors ⇒ Object (readonly)
Returns the value of attribute attribute_errors.
10 11 12 |
# File 'lib/dnsimple/error.rb', line 10 def attribute_errors @attribute_errors end |
#http_response ⇒ Object (readonly)
Returns the value of attribute http_response.
10 11 12 |
# File 'lib/dnsimple/error.rb', line 10 def http_response @http_response end |