Exception: Steep::AnnotationParser::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- Steep::AnnotationParser::SyntaxError
- Defined in:
- lib/steep/annotation_parser.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source:, location:, exn: nil) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(source:, location:, exn: nil) ⇒ SyntaxError
Returns a new instance of SyntaxError.
23 24 25 26 27 |
# File 'lib/steep/annotation_parser.rb', line 23 def initialize(source:, location:, exn: nil) @source = source @location = location super "Syntax error on annotation: `#{source}`, cause=#{exn.inspect}" end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
21 22 23 |
# File 'lib/steep/annotation_parser.rb', line 21 def location @location end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
20 21 22 |
# File 'lib/steep/annotation_parser.rb', line 20 def source @source end |