Exception: PgQuery::ScanError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- PgQuery::ScanError
- Defined in:
- lib/pg_query/scan.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(message, source_file, source_line, location) ⇒ ScanError
constructor
A new instance of ScanError.
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(, source_file, source_line, location) super("#{} (#{source_file}:#{source_line})") @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
3 4 5 |
# File 'lib/pg_query/scan.rb', line 3 def location @location end |