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.



120
121
122
123
124
# File 'lib/mailkite.rb', line 120

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



118
119
120
# File 'lib/mailkite.rb', line 118

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



118
119
120
# File 'lib/mailkite.rb', line 118

def status
  @status
end