Cancels the transaction by setting an error code to it.
Syntax
void
cancel
(
final Transaction
txn
,
final Integer
errorCode
,
final Long
actor
)
Parameters
-
txn –
the transaction to cancel
-
errorCode –
the error code that should be set for the transaction
-
actor –
the current actor