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.



228
229
230
231
232
# File 'lib/mailkite.rb', line 228

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



226
227
228
# File 'lib/mailkite.rb', line 226

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



226
227
228
# File 'lib/mailkite.rb', line 226

def status
  @status
end