public function TransactionInterface::getResultCode in Transaction 8
Gets the execution result code.
Positive integer means that the execution was successful:
- 1: generic code for successful execution, - > 1: transactor specific successful execution result code.
Negative integer means that there were errors trying to execute the transaction:
- -1: generic code for failed execution, - < -1: transactor specific failed execution result code
Errors can be recoverable or fatal. If transaction is still pending execution, there was a recoverable error and the execution can be retried. If transaction is in executed state, there was a fatal error and the execution cannot be retried.
Return value
int The result code. FALSE if transaction execution was never called.
See also
\Drupal\transaction\TransactorPluginInterface::RESULT_OK
\Drupal\transaction\TransactorPluginInterface::RESULT_ERROR
1 method overrides TransactionInterface::getResultCode()
- Transaction::getResultCode in src/
Entity/ Transaction.php - Gets the execution result code.
File
- src/
TransactionInterface.php, line 265
Class
- TransactionInterface
- The interface for transaction entities.
Namespace
Drupal\transactionCode
public function getResultCode();