Exception: Johnson::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Johnson::Error
- Defined in:
- lib/johnson/error.rb
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(message, original = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, original = nil) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/johnson/error.rb', line 4 def initialize(, original=nil) super() @original_exception = original unless original.nil? end |
Instance Attribute Details
#original_exception ⇒ Object
Returns the value of attribute original_exception.
3 4 5 |
# File 'lib/johnson/error.rb', line 3 def original_exception @original_exception end |