Exception: Wapiti::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wapiti/errors.rb

Direct Known Subclasses

NativeError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = '', original = $!) ⇒ Error

Returns a new instance of Error.



5
6
7
8
# File 'lib/wapiti/errors.rb', line 5

def initialize(message = '', original = $!)
  super(message)
  @original = original
end

Instance Attribute Details

#originalObject

Returns the value of attribute original.



3
4
5
# File 'lib/wapiti/errors.rb', line 3

def original
  @original
end