Exception: EmailOctopus::API::Error
- Inherits:
-
StandardError
- Object
- StandardError
- EmailOctopus::API::Error
- Defined in:
- lib/email_octopus/api/error.rb,
lib/email_octopus/api/error/not_found.rb,
lib/email_octopus/api/error/unauthorized.rb,
lib/email_octopus/api/error/api_key_invalid.rb,
lib/email_octopus/api/error/invalid_parameters.rb
Overview
Base error class, also thrown when unknown errors occur.
Direct Known Subclasses
Defined Under Namespace
Classes: ApiKeyInvalid, InvalidParameters, NotFound, Unauthorized
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/email_octopus/api/error.rb', line 8 def initialize(response) @response = response super @response.body['message'] end |