Exception: Johnson::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/johnson/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, original=nil)
  super(message)
  @original_exception = original unless original.nil?
end

Instance Attribute Details

#original_exceptionObject

Returns the value of attribute original_exception.



3
4
5
# File 'lib/johnson/error.rb', line 3

def original_exception
  @original_exception
end