Class: Safrano::ServiceOperationError

Inherits:
Object
  • Object
show all
Extended by:
ErrorClass
Includes:
ErrorInstance
Defined in:
lib/odata/error.rb

Constant Summary collapse

HTTP_CODE =
500

Constants included from ErrorClass

ErrorClass::EMPTYH

Instance Method Summary collapse

Methods included from ErrorClass

http_code, 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 ErrorInstance

#msg, #odata_get

Constructor Details

#initialize(msg:, sopname: nil) ⇒ ServiceOperationError

Returns a new instance of ServiceOperationError.



121
122
123
# File 'lib/odata/error.rb', line 121

def initialize(msg:, sopname: nil)
  @msg = "Error in service operation #{sopname}: #{msg}"
end