Exception: ChainReactor::ChainfileParserError
- Inherits:
-
StandardError
- Object
- StandardError
- ChainReactor::ChainfileParserError
- 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
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(original) ⇒ ChainfileParserError
constructor
A new instance of ChainfileParserError.
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..gsub(/\sfor #<ChainReactor.*>/,'')) end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
9 10 11 |
# File 'lib/chain-reactor/chainfile_parser.rb', line 9 def original @original end |