Exception: Mongoid::Oslc::QueryParsingError
- Inherits:
-
Exception
- Object
- Exception
- Mongoid::Oslc::QueryParsingError
- Defined in:
- lib/mongoid/oslc/exceptions.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query = "", index = 0, message = "") ⇒ QueryParsingError
constructor
A new instance of QueryParsingError.
Constructor Details
#initialize(query = "", index = 0, message = "") ⇒ QueryParsingError
Returns a new instance of QueryParsingError.
13 14 15 16 17 |
# File 'lib/mongoid/oslc/exceptions.rb', line 13 def initialize(query = "", index = 0, = "") @query = query @index = index super("Parse error at offset: #{@index} #{highlight_error(@query, @index)}") end |
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
12 13 14 |
# File 'lib/mongoid/oslc/exceptions.rb', line 12 def query @query end |