Class: Safrano::ErrorNotFoundSegment

Inherits:
ErrorNotFound show all
Includes:
ErrorInstance
Defined in:
lib/odata/error.rb

Overview

http not found segment

Constant Summary

Constants inherited from ErrorNotFound

Safrano::ErrorNotFound::HTTP_CODE

Constants included from ErrorClass

Safrano::ErrorClass::EMPTYH

Instance Method Summary collapse

Methods included from ErrorInstance

#msg, #odata_get

Methods included from Contract::Invalid

#collect_result!, #error, #if_error, #if_valid, #if_valid_collect, #map_result!, #result, #tap_error, #tap_valid

Methods included from ErrorClass

#http_code, #odata_get

Constructor Details

#initialize(segment) ⇒ ErrorNotFoundSegment

Returns a new instance of ErrorNotFoundSegment.



244
245
246
# File 'lib/odata/error.rb', line 244

def initialize(segment)
  @msg = "The requested ressource segment #{segment} was not found"
end