Exception: OData::AbstractQuery::Errors::AbstractQueryKeyValueException

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

Direct Known Subclasses

InvalidReservedOptionName

Instance Attribute Summary collapse

Attributes inherited from AbstractQueryException

#query

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



70
71
72
# File 'lib/o_data/abstract_query/errors.rb', line 70

def key
  @key
end

#valueObject (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_sObject



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