Exception: Mailgun::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Mailgun::Error
- Defined in:
- lib/mailgun/exceptions/exceptions.rb
Overview
Public: A basic class for mananging errors. Inherits from StandardError (previously RuntimeError) as not all errors are runtime errors.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Public: get an object an error is instantiated with.
Instance Method Summary collapse
-
#initialize(message = nil, object = nil) ⇒ Error
constructor
Public: initialize a Mailgun:Error object.
Constructor Details
#initialize(message = nil, object = nil) ⇒ Error
Public: initialize a Mailgun:Error object
message - a String describing the error object - an object with details about the error
15 16 17 18 |
# File 'lib/mailgun/exceptions/exceptions.rb', line 15 def initialize( = nil, object = nil) super() @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Public: get an object an error is instantiated with
9 10 11 |
# File 'lib/mailgun/exceptions/exceptions.rb', line 9 def object @object end |