Exception: PgQuery::ScanError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ScanError.



4
5
6
7
# File 'lib/pg_query/scan.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/scan.rb', line 3

def location
  @location
end