Exception: ApiQueryLanguage::Errors::InvalidExpressionError

Inherits:
Error
  • Object
show all
Defined in:
lib/api_query_language/errors/invalid_expression_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(expression, reason) ⇒ InvalidExpressionError

Returns a new instance of InvalidExpressionError.



4
5
6
# File 'lib/api_query_language/errors/invalid_expression_error.rb', line 4

def initialize(expression, reason)
  super("The expression '#{expression}' is invalid because #{reason}.")
end