Exception: ChainReactor::ChainfileParserError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chain-reactor/chainfile_parser.rb

Overview

Error raised when there’s a error parsing the chain file.

This contains the original exception raised by eval().

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original) ⇒ ChainfileParserError

Returns a new instance of ChainfileParserError.



10
11
12
13
# File 'lib/chain-reactor/chainfile_parser.rb', line 10

def initialize(original)
  @original = original
  super(original.message.gsub(/\sfor #<ChainReactor.*>/,''))
end

Instance Attribute Details

#originalObject (readonly)

Returns the value of attribute original.



9
10
11
# File 'lib/chain-reactor/chainfile_parser.rb', line 9

def original
  @original
end