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