Exception: Mailkite::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Mailkite::Error
- Defined in:
- lib/mailkite.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message, body = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status, message, body = nil) ⇒ Error
Returns a new instance of Error.
120 121 122 123 124 |
# File 'lib/mailkite.rb', line 120 def initialize(status, , body = nil) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
118 119 120 |
# File 'lib/mailkite.rb', line 118 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
118 119 120 |
# File 'lib/mailkite.rb', line 118 def status @status end |