Exception: Mongoid::Oslc::QuerySyntaxError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, query = nil) ⇒ QuerySyntaxError

Returns a new instance of QuerySyntaxError.



5
6
7
8
# File 'lib/mongoid/oslc/exceptions.rb', line 5

def initialize(message, query = nil)
  @query = query
  super(message)
end

Instance Attribute Details

#queryObject (readonly)

Returns the value of attribute query.



4
5
6
# File 'lib/mongoid/oslc/exceptions.rb', line 4

def query
  @query
end