Exception: AnyStyle::Error

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

Direct Known Subclasses

TrainingError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Error.



6
7
8
9
# File 'lib/anystyle/errors.rb', line 6

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

Instance Attribute Details

#originalObject

Returns the value of attribute original.



4
5
6
# File 'lib/anystyle/errors.rb', line 4

def original
  @original
end