TransactionRolledbackException transactionRolledbackException = new TransactionRolledbackException(ex.getMessage());
transactionRolledbackException.detail = ex;
return transactionRolledbackException;
}
if (ex instanceof TRANSACTION_REQUIRED) {
TransactionRequiredException transactionRequiredException = new TransactionRequiredException(ex.getMessage());
transactionRequiredException.detail = ex;
return transactionRequiredException;
}
if (ex instanceof INVALID_TRANSACTION) {
InvalidTransactionException invalidTransactionException = new InvalidTransactionException(ex.getMessage());