Exception: Anystyle::Parser::Error

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

Direct Known Subclasses

DictionaryError, TrainingError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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


8
9
10
11
# File 'lib/anystyle/parser/errors.rb', line 8

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

Instance Attribute Details

#originalObject

Returns the value of attribute original


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

def original
  @original
end