Exception: OData::AbstractQuery::Errors::AbstractQueryKeyValueException
- Inherits:
-
AbstractQueryException
- Object
- StandardError
- ODataException
- AbstractQueryException
- OData::AbstractQuery::Errors::AbstractQueryKeyValueException
- Defined in:
- lib/o_data/abstract_query/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from AbstractQueryException
Instance Method Summary collapse
-
#initialize(query, key, value) ⇒ AbstractQueryKeyValueException
constructor
A new instance of AbstractQueryKeyValueException.
- #to_s ⇒ Object
Constructor Details
#initialize(query, key, value) ⇒ AbstractQueryKeyValueException
Returns a new instance of AbstractQueryKeyValueException.
72 73 74 75 76 77 |
# File 'lib/o_data/abstract_query/errors.rb', line 72 def initialize(query, key, value) super(query) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
70 71 72 |
# File 'lib/o_data/abstract_query/errors.rb', line 70 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
70 71 72 |
# File 'lib/o_data/abstract_query/errors.rb', line 70 def value @value end |
Instance Method Details
#to_s ⇒ Object
79 80 81 |
# File 'lib/o_data/abstract_query/errors.rb', line 79 def to_s "An unknown error has occured for the query option '#{@key.to_s}'." end |