class Mailgun::Error
Public: A basic class for mananging errors. Inherits from StandardError (previously RuntimeError) as not all errors are runtime errors.
Attributes
object[R]
Public: get an object an error is instantiated with
Public Class Methods
new(message = nil, object = nil)
click to toggle source
Public: initialize a Mailgun:Error object
message - a String describing the error object - an object with details about the error
Calls superclass method
# File lib/mailgun/exceptions/exceptions.rb, line 15 def initialize(message = nil, object = nil) super(message) @object = object end