Exception: Mailclerk::MailclerkAPIError
- Inherits:
-
MailclerkError
- Object
- StandardError
- MailclerkError
- Mailclerk::MailclerkAPIError
- Defined in:
- lib/errors.rb
Instance Attribute Summary collapse
-
#http_response ⇒ Object
Returns the value of attribute http_response.
-
#http_status ⇒ Object
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(description, http_status = nil, http_response = nil) ⇒ MailclerkAPIError
constructor
A new instance of MailclerkAPIError.
Constructor Details
#initialize(description, http_status = nil, http_response = nil) ⇒ MailclerkAPIError
Returns a new instance of MailclerkAPIError.
9 10 11 12 13 |
# File 'lib/errors.rb', line 9 def initialize(description, http_status=nil, http_response=nil) super(description) self.http_status = http_status self.http_response = http_response end |
Instance Attribute Details
#http_response ⇒ Object
Returns the value of attribute http_response.
7 8 9 |
# File 'lib/errors.rb', line 7 def http_response @http_response end |
#http_status ⇒ Object
Returns the value of attribute http_status.
6 7 8 |
# File 'lib/errors.rb', line 6 def http_status @http_status end |