Exception: OData::AbstractQuery::Errors::AbstractQueryOptionException
- Inherits:
-
AbstractQueryException
- Object
- StandardError
- ODataException
- AbstractQueryException
- OData::AbstractQuery::Errors::AbstractQueryOptionException
- Defined in:
- lib/o_data/abstract_query/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#option ⇒ Object
readonly
Returns the value of attribute option.
Attributes inherited from AbstractQueryException
Instance Method Summary collapse
-
#initialize(query, option) ⇒ AbstractQueryOptionException
constructor
A new instance of AbstractQueryOptionException.
- #to_s ⇒ Object
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
#option ⇒ Object (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_s ⇒ Object
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 |