Exception: Mailkite::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mailkite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message, body = nil) ⇒ Error

Returns a new instance of Error.



59
60
61
62
63
# File 'lib/mailkite.rb', line 59

def initialize(status, message, body = nil)
  super(message)
  @status = status
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



57
58
59
# File 'lib/mailkite.rb', line 57

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



57
58
59
# File 'lib/mailkite.rb', line 57

def status
  @status
end