Exception: CardDB::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CardDB::Error
- Defined in:
- lib/carddb/errors.rb
Overview
Base error class for all CardDB errors
Direct Known Subclasses
AuthenticationError, ConnectionError, GraphQLError, NotFoundError, RateLimitError, RestrictedError, ServerError, ValidationError
Instance Attribute Summary collapse
-
#response ⇒ Hash?
readonly
The full response body if available.
Instance Method Summary collapse
-
#initialize(message = nil, response: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, response: nil) ⇒ Error
Returns a new instance of Error.
9 10 11 12 |
# File 'lib/carddb/errors.rb', line 9 def initialize( = nil, response: nil) @response = response super() end |
Instance Attribute Details
#response ⇒ Hash? (readonly)
Returns The full response body if available.
7 8 9 |
# File 'lib/carddb/errors.rb', line 7 def response @response end |