cancel(final Transaction, final Integer, final Long) method

Cancels the transaction by setting an error code to it.

Syntax

void cancel ( final Transaction txn , final Integer errorCode , final Long actor )

Parameters