Exception: Mongoid::Oslc::QueryParsingError

Inherits:
Exception
  • Object
show all
Defined in:
lib/mongoid/oslc/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message = "")
  @query = query
  @index = index
  super("Parse error at offset: #{@index} #{highlight_error(@query, @index)}")
end

Instance Attribute Details

#queryObject (readonly)

Returns the value of attribute query.



12
13
14
# File 'lib/mongoid/oslc/exceptions.rb', line 12

def query
  @query
end