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.
60 61 62 63 64 |
# File 'lib/mailkite.rb', line 60 def initialize(status, , body = nil) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
58 59 60 |
# File 'lib/mailkite.rb', line 58 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
58 59 60 |
# File 'lib/mailkite.rb', line 58 def status @status end |