Exception: SendGridActionMailerAdapter::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- SendGridActionMailerAdapter::ApiError
- Defined in:
- lib/sendgrid_actionmailer_adapter/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ApiError
constructor
A new instance of ApiError.
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
#response ⇒ Object
Returns the value of attribute response.
7 8 9 |
# File 'lib/sendgrid_actionmailer_adapter/errors.rb', line 7 def response @response end |