Exception: Parser::SyntaxError
- Inherits:
- 
      StandardError
      
        - Object
- StandardError
- Parser::SyntaxError
 
- Defined in:
- lib/parser/syntax_error.rb
Overview
SyntaxError is raised whenever parser detects a syntax error, similar to the standard SyntaxError class.
Instance Attribute Summary collapse
- #diagnostic ⇒ Parser::Diagnostic readonly
Instance Method Summary collapse
- 
  
    
      #initialize(diagnostic)  ⇒ SyntaxError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SyntaxError. 
Constructor Details
#initialize(diagnostic) ⇒ SyntaxError
Returns a new instance of SyntaxError.
| 16 17 18 19 | # File 'lib/parser/syntax_error.rb', line 16 def initialize(diagnostic) @diagnostic = diagnostic super(diagnostic.) end | 
Instance Attribute Details
#diagnostic ⇒ Parser::Diagnostic (readonly)
| 13 14 15 16 17 18 19 20 | # File 'lib/parser/syntax_error.rb', line 13 class SyntaxError < StandardError attr_reader :diagnostic def initialize(diagnostic) @diagnostic = diagnostic super(diagnostic.) end end |