Exception: Mailgun::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mailgun::Error
- Defined in:
- lib/mailgun/exceptions/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(message = nil, object = nil) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, object = nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/mailgun/exceptions/exceptions.rb', line 6 def initialize(=nil, object=nil) @message = @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
4 5 6 |
# File 'lib/mailgun/exceptions/exceptions.rb', line 4 def object @object end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/mailgun/exceptions/exceptions.rb', line 11 def to_s @message || self.class.to_s end |