Exception: SendGridActionMailerAdapter::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sendgrid_actionmailer_adapter/errors.rb

Direct Known Subclasses

ApiClientError, ApiUnexpectedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ApiError

Returns a new instance of ApiError.



9
10
11
12
# File 'lib/sendgrid_actionmailer_adapter/errors.rb', line 9

def initialize(response)
  super("SendGrid API returns error, #{response.inspect}")
  @response = response
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



7
8
9
# File 'lib/sendgrid_actionmailer_adapter/errors.rb', line 7

def response
  @response
end