Exception: OData::AbstractQuery::Errors::AbstractQueryOptionException

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

Direct Known Subclasses

InvalidOptionContext, InvalidOptionValue

Instance Attribute Summary collapse

Attributes inherited from AbstractQueryException

#query

Instance Method Summary collapse

Constructor Details

#initialize(query, option) ⇒ AbstractQueryOptionException

Returns a new instance of AbstractQueryOptionException.



93
94
95
96
97
# File 'lib/o_data/abstract_query/errors.rb', line 93

def initialize(query, option)
  super(query)
  
  @option = option
end

Instance Attribute Details

#optionObject (readonly)

Returns the value of attribute option.



91
92
93
# File 'lib/o_data/abstract_query/errors.rb', line 91

def option
  @option
end

Instance Method Details

#to_sObject



99
100
101
# File 'lib/o_data/abstract_query/errors.rb', line 99

def to_s
  "Invalid '#{@option.option_name.to_s}' query option."
end