TransactionRequiredException transactionRequiredException = new TransactionRequiredException(ex.getMessage());
transactionRequiredException.detail = ex;
return transactionRequiredException;
}
if (ex instanceof INVALID_TRANSACTION) {
InvalidTransactionException invalidTransactionException = new InvalidTransactionException(ex.getMessage());
invalidTransactionException.detail = ex;
return invalidTransactionException;
}
if (ex instanceof OBJECT_NOT_EXIST) {
NoSuchObjectException noSuchObjectException = new NoSuchObjectException(ex.getMessage());