Exception: Natsuzora::Contract::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Natsuzora::Contract::ParseError
- Defined in:
- lib/natsuzora/contract/parse_error.rb
Overview
Error that can occur during parsing.
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(message, line = 0, column = 0) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, line = 0, column = 0) ⇒ ParseError
Returns a new instance of ParseError.
9 10 11 12 13 |
# File 'lib/natsuzora/contract/parse_error.rb', line 9 def initialize(, line = 0, column = 0) @line = line @column = column super("#{} at line #{line}, column #{column}") end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
7 8 9 |
# File 'lib/natsuzora/contract/parse_error.rb', line 7 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
7 8 9 |
# File 'lib/natsuzora/contract/parse_error.rb', line 7 def line @line end |