Exception: DrgDSL::ParserError
- Inherits:
-
StandardError
- Object
- StandardError
- DrgDSL::ParserError
- Defined in:
- lib/drgdsl/parser.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#parslet_error ⇒ Object
readonly
Returns the value of attribute parslet_error.
Instance Method Summary collapse
-
#initialize(parslet_error:, input:) ⇒ ParserError
constructor
A new instance of ParserError.
- #message ⇒ Object
Constructor Details
#initialize(parslet_error:, input:) ⇒ ParserError
Returns a new instance of ParserError.
7 8 9 10 |
# File 'lib/drgdsl/parser.rb', line 7 def initialize(parslet_error:, input:) @parslet_error = parslet_error @input = input end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
5 6 7 |
# File 'lib/drgdsl/parser.rb', line 5 def input @input end |
#parslet_error ⇒ Object (readonly)
Returns the value of attribute parslet_error.
5 6 7 |
# File 'lib/drgdsl/parser.rb', line 5 def parslet_error @parslet_error end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/drgdsl/parser.rb', line 12 def %{Failed to parse "#{input}"\nParslet::ParseFailed: #{parslet_error}} end |