lib/operations/command.rb
# Calls the operation and raises an exception in case of a failure
# but only if preconditions and policies have passed.
# This means that the exception will be raised only on contract
# or the operation body failure.
Calls the operation and raises an exception in case of a failure
but only if preconditions and policies have passed.
This means that the exception will be raised only on contract
or the operation body failure.
Calls the operation and raises an exception in case of a failure but only if preconditions and policies have passed . This means that the exception will be raised only on contract or the operation body failure .
def try_call!(params, **context)
    result = call(params, **context)
    raise OperationFailed.new(result) if result.failure? && !result.failed_precheck?
    result
  end
def try_call! ( params , ** context ) result = call ( params , ** context ) raise OperationFailed . new ( result ) if result . failure? && ! result . failed_precheck? result end
Calls the operation and raises an exception in case of a failure
but only if preconditions and policies have passed.
Calls the operation and raises an exception in case of a failure but only if preconditions and policies have passed .
params
<not_specific>
context
<not_specific>