Exception: PgQuery::ParseError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- PgQuery::ParseError
- Defined in:
- lib/pg_query/parse_error.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) ⇒ ParseError
constructor
A new instance of ParseError.
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(, 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/parse_error.rb', line 3 def location @location end |