Exception: Parser::SyntaxError
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
StandardError
|
|
|
Instance Chain:
self,
StandardError
|
|
| Inherits: |
StandardError
|
| Defined in: | lib/rubocop/ast/vendor/parser/syntax_error.rb |
Overview
SyntaxError is raised whenever parser detects a syntax error,
similar to the standard SyntaxError class.
Class Method Summary
- .new(diagnostic) ⇒ SyntaxError constructor
Instance Attribute Summary
- #diagnostic ⇒ Parser::Diagnostic readonly
Constructor Details
.new(diagnostic) ⇒ SyntaxError
# File 'lib/rubocop/ast/vendor/parser/syntax_error.rb', line 16
def initialize(diagnostic) @diagnostic = diagnostic super(diagnostic.) end
Instance Attribute Details
#diagnostic ⇒ Parser::Diagnostic (readonly)
# File 'lib/rubocop/ast/vendor/parser/syntax_error.rb', line 13
class SyntaxError < StandardError attr_reader :diagnostic def initialize(diagnostic) @diagnostic = diagnostic super(diagnostic.) end end