public static TransactionException internalProxyException(Exception ex1) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, EXCEPTION_IN_PROXY_EXECUTION, args), ex1); ex.setErrorCode(EXCEPTION_IN_PROXY_EXECUTION); return ex; }
public static TransactionException externalTransactionNotActive() { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE, args)); ex.setErrorCode(ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE); return ex; }
public static TransactionException inactiveUnitOfWork(UnitOfWorkImpl unitOfWork) { Object[] args = { unitOfWork }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_INACTIVE_UOW, args)); ex.setErrorCode(ERROR_INACTIVE_UOW); return ex; }
public static TransactionException inactiveUnitOfWork(UnitOfWorkImpl unitOfWork) { Object[] args = { unitOfWork }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_INACTIVE_UOW, args)); ex.setErrorCode(ERROR_INACTIVE_UOW); return ex; }
public static TransactionException entityTransactionNotActive() { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_ENTITY_TRANSACTION_ACTIVE, args)); ex.setErrorCode(ERROR_NO_ENTITY_TRANSACTION_ACTIVE); return ex; }
public static TransactionException externalTransactionNotActive() { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE, args)); ex.setErrorCode(ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE); return ex; }
public static TransactionException inactiveUnitOfWork(UnitOfWorkImpl unitOfWork) { Object[] args = { unitOfWork }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_INACTIVE_UOW, args)); ex.setErrorCode(ERROR_INACTIVE_UOW); return ex; }
public static TransactionException transactionNotActive() { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_TRANSACTION_ACTIVE, args)); ex.setErrorCode(ERROR_NO_TRANSACTION_ACTIVE); return ex; } public static TransactionException transactionIsActive() {
public static TransactionException entityTransactionWithJTANotAllowed() { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED, args)); ex.setErrorCode(ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED); return ex; }
public static TransactionException transactionIsActive() { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_TRANSACTION_IS_ACTIVE, args)); ex.setErrorCode(ERROR_TRANSACTION_IS_ACTIVE); return ex; }
public static TransactionException errorBindingToExternalTransaction(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_BINDING_TO_TRANSACTION, args)); ex.setErrorCode(ERROR_BINDING_TO_TRANSACTION); ex.setInternalException(internalException); return ex; }
public static TransactionException errorCommittingExternalTransaction(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_COMMITTING_TRANSACTION, args)); ex.setErrorCode(ERROR_COMMITTING_TRANSACTION); ex.setInternalException(internalException); return ex; }
public static TransactionException errorRollingBackExternalTransaction(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_ROLLING_BACK_TRANSACTION, args)); ex.setErrorCode(ERROR_ROLLING_BACK_TRANSACTION); ex.setInternalException(internalException); return ex; }
public static TransactionException errorMarkingTransactionForRollback(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_MARKING_TRANSACTION_FOR_ROLLBACK, args)); ex.setErrorCode(ERROR_MARKING_TRANSACTION_FOR_ROLLBACK); ex.setInternalException(internalException); return ex; }
public static TransactionException jndiLookupException(String jndiName, Exception internalException) { Object[] args = { jndiName }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_DOING_JNDI_LOOKUP, args)); ex.setErrorCode(ERROR_DOING_JNDI_LOOKUP); ex.setInternalException(internalException); return ex; }
public static TransactionException errorBindingToExternalTransaction(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_BINDING_TO_TRANSACTION, args)); ex.setErrorCode(ERROR_BINDING_TO_TRANSACTION); ex.setInternalException(internalException); return ex; }
public static TransactionException errorGettingExternalTransaction(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_GETTING_TRANSACTION, args)); ex.setErrorCode(ERROR_GETTING_TRANSACTION); ex.setInternalException(internalException); return ex; }
public static TransactionException errorMarkingTransactionForRollback(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_MARKING_TRANSACTION_FOR_ROLLBACK, args)); ex.setErrorCode(ERROR_MARKING_TRANSACTION_FOR_ROLLBACK); ex.setInternalException(internalException); return ex; }
public static TransactionException errorCommittingExternalTransaction(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_COMMITTING_TRANSACTION, args)); ex.setErrorCode(ERROR_COMMITTING_TRANSACTION); ex.setInternalException(internalException); return ex; }
public static TransactionException errorRollingBackExternalTransaction(Exception internalException) { Object[] args = { }; TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_ROLLING_BACK_TRANSACTION, args)); ex.setErrorCode(ERROR_ROLLING_BACK_TRANSACTION); ex.setInternalException(internalException); return ex; }