Exception: OData::AbstractQuery::Errors::InvalidOptionValue

Inherits:
AbstractQueryOptionException show all
Defined in:
lib/o_data/abstract_query/errors.rb

Instance Attribute Summary

Attributes inherited from AbstractQueryOptionException

#option

Attributes inherited from AbstractQueryException

#query

Instance Method Summary collapse

Methods inherited from AbstractQueryOptionException

#initialize

Methods inherited from AbstractQueryException

#initialize

Constructor Details

This class inherits a constructor from OData::AbstractQuery::Errors::AbstractQueryOptionException

Instance Method Details

#to_sObject



111
112
113
# File 'lib/o_data/abstract_query/errors.rb', line 111

def to_s
  "Invalid value for '#{self.option.option_name.to_s}' query option#{" - the only acceptable values are #{self.option.valid_values.collect { |v| v.to_s.inspect }.to_sentence}" if self.option.respond_to?(:valid_values)}."
end