Exception: EmailOctopus::API::Error

Inherits:
StandardError
  • Object
show all
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.

Defined Under Namespace

Classes: ApiKeyInvalid, InvalidParameters, NotFound, Unauthorized

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Error


8
9
10
11
# File 'lib/email_octopus/api/error.rb', line 8

def initialize(response)
  @response = response
  super @response.body['message']
end