Exception: OData::AbstractQuery::Errors::ParseQuerySegmentException

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

Instance Attribute Summary collapse

Attributes inherited from AbstractQueryException

#query

Instance Method Summary collapse

Constructor Details

#initialize(query, str) ⇒ ParseQuerySegmentException

Returns a new instance of ParseQuerySegmentException.



19
20
21
22
# File 'lib/o_data/abstract_query/errors.rb', line 19

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

Instance Attribute Details

#strObject (readonly)

Returns the value of attribute str.



17
18
19
# File 'lib/o_data/abstract_query/errors.rb', line 17

def str
  @str
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/o_data/abstract_query/errors.rb', line 24

def to_s
  "Resource not found for the segment '#{@str.to_s}'."
end