Exception: PgQuery::ParseError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/pg_query/parse_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, source_file, source_line, location) ⇒ ParseError

Returns a new instance of ParseError.



4
5
6
7
# File 'lib/pg_query/parse_error.rb', line 4

def initialize(message, source_file, source_line, location)
  super("#{message} (#{source_file}:#{source_line})")
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



3
4
5
# File 'lib/pg_query/parse_error.rb', line 3

def location
  @location
end