Exception: Rasti::DB::NQL::InvalidExpressionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rasti/db/nql/invalid_expression_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression) ⇒ InvalidExpressionError

Returns a new instance of InvalidExpressionError.



8
9
10
# File 'lib/rasti/db/nql/invalid_expression_error.rb', line 8

def initialize(expression)
  @expression = expression
end

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression.



6
7
8
# File 'lib/rasti/db/nql/invalid_expression_error.rb', line 6

def expression
  @expression
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/rasti/db/nql/invalid_expression_error.rb', line 12

def message
  "Invalid filter expression: #{expression}"
end