Exception: Mailosaur::MailosaurError
- Inherits:
-
StandardError
- Object
- StandardError
- Mailosaur::MailosaurError
- Defined in:
- lib/Mailosaur/mailosaur_error.rb
Instance Attribute Summary collapse
-
#error_type ⇒ Object
readonly
Returns the value of attribute error_type.
-
#http_response_body ⇒ Object
readonly
Returns the value of attribute http_response_body.
-
#http_status_code ⇒ Object
readonly
Returns the value of attribute http_status_code.
Instance Method Summary collapse
-
#initialize(message = '', error_type = '', http_status_code = nil, http_response_body = nil) ⇒ MailosaurError
constructor
A new instance of MailosaurError.
Constructor Details
#initialize(message = '', error_type = '', http_status_code = nil, http_response_body = nil) ⇒ MailosaurError
Returns a new instance of MailosaurError.
5 6 7 8 9 10 11 |
# File 'lib/Mailosaur/mailosaur_error.rb', line 5 def initialize( = '', error_type = '', http_status_code = nil, http_response_body = nil) super() @error_type = error_type @http_status_code = http_status_code @http_response_body = http_response_body end |
Instance Attribute Details
#error_type ⇒ Object (readonly)
Returns the value of attribute error_type.
3 4 5 |
# File 'lib/Mailosaur/mailosaur_error.rb', line 3 def error_type @error_type end |
#http_response_body ⇒ Object (readonly)
Returns the value of attribute http_response_body.
3 4 5 |
# File 'lib/Mailosaur/mailosaur_error.rb', line 3 def http_response_body @http_response_body end |
#http_status_code ⇒ Object (readonly)
Returns the value of attribute http_status_code.
3 4 5 |
# File 'lib/Mailosaur/mailosaur_error.rb', line 3 def http_status_code @http_status_code end |