Class: Safrano::ServiceOperationError
- Inherits:
-
Object
- Object
- Safrano::ServiceOperationError
- Extended by:
- ErrorClass
- Includes:
- ErrorInstance
- Defined in:
- lib/odata/error.rb
Constant Summary collapse
- HTTP_CODE =
500
Constants included from ErrorClass
Instance Method Summary collapse
-
#initialize(msg:, sopname: nil) ⇒ ServiceOperationError
constructor
A new instance of ServiceOperationError.
Methods included from ErrorClass
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
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 |