Exception: Hotcell::Errors::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- Hotcell::Errors::SyntaxError
- Defined in:
- lib/hotcell/errors.rb
Overview
class UnterminatedRegexp < ParseError
def
"Unterminated regexp starting at: line #{@line}, column #{@column}"
end
end
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(message, line = nil, column = nil) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
- #message ⇒ Object
Constructor Details
#initialize(message, line = nil, column = nil) ⇒ SyntaxError
Returns a new instance of SyntaxError.
28 29 30 |
# File 'lib/hotcell/errors.rb', line 28 def initialize , line = nil, column = nil @message, @line, @column = , line, column end |
Instance Method Details
#message ⇒ Object
32 33 34 |
# File 'lib/hotcell/errors.rb', line 32 def "#{@message} at #{@line}:#{@column}" end |