Exception: Foxtail::Syntax::Parser::ParseError
- Inherits:
-
Error
- Object
- StandardError
- Tools::Error
- Error
- Foxtail::Syntax::Parser::ParseError
- Defined in:
- lib/foxtail/syntax/parser/parse_error.rb
Overview
Parse error with detailed error codes and messages
Instance Attribute Summary collapse
-
#args ⇒ Array
readonly
Additional arguments for error message formatting.
-
#code ⇒ String
readonly
Error code (e.g., “E0001”, “E0002”).
Instance Method Summary collapse
-
#initialize(code, *args) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(code, *args) ⇒ ParseError
Returns a new instance of ParseError.
15 16 17 18 19 |
# File 'lib/foxtail/syntax/parser/parse_error.rb', line 15 def initialize(code, *args) @code = code @args = args super((code, args)) end |
Instance Attribute Details
#args ⇒ Array (readonly)
Returns Additional arguments for error message formatting.
11 12 13 |
# File 'lib/foxtail/syntax/parser/parse_error.rb', line 11 def args @args end |
#code ⇒ String (readonly)
Returns Error code (e.g., “E0001”, “E0002”).
9 10 11 |
# File 'lib/foxtail/syntax/parser/parse_error.rb', line 9 def code @code end |