Exception: Citrus::StandardError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/citrus/exceptions.rb

Direct Known Subclasses

ArgumentError, NameError, NotFoundError

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ StandardError

Returns a new instance of StandardError.



14
15
16
17
18
# File 'lib/citrus/exceptions.rb', line 14

def initialize(message)
  line = $parser.input.line_of($pindex)
  col = $parser.input.column_of($pindex)
  super("#{message} at #{line}:#{col}.")
end