Module org.eclipse.persistence.core
Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.TransactionException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
Constructor Summary
ConstructorDescriptionTransactionException
(String message) TransactionException
(String message, Exception internalException) -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionException
static TransactionException
static TransactionException
errorBeginningExternalTransaction
(Exception internalException) static TransactionException
errorBindingToExternalTransaction
(Exception internalException) static TransactionException
errorCommittingExternalTransaction
(Exception internalException) static TransactionException
errorGettingExternalTransaction
(Exception internalException) static TransactionException
errorGettingExternalTransactionStatus
(Exception internalException) static TransactionException
errorMarkingTransactionForRollback
(Exception internalException) static TransactionException
errorObtainingTransactionManager
(Exception internalException) static TransactionException
errorObtainingTsr
(Exception internalException) Build transaction exception instance when obtaining ofTransactionSynchronizationRegistry
instance failed.static TransactionException
errorRollingBackExternalTransaction
(Exception internalException) static TransactionException
static TransactionException
inactiveUnitOfWork
(UnitOfWorkImpl unitOfWork) static TransactionException
static TransactionException
jndiLookupException
(String jndiName, Exception internalException) static TransactionException
static TransactionException
static TransactionException
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
ERROR_DOING_JNDI_LOOKUP
public static final int ERROR_DOING_JNDI_LOOKUP- See Also:
-
ERROR_GETTING_TRANSACTION_STATUS
public static final int ERROR_GETTING_TRANSACTION_STATUS- See Also:
-
ERROR_GETTING_TRANSACTION
public static final int ERROR_GETTING_TRANSACTION- See Also:
-
ERROR_OBTAINING_TRANSACTION_MANAGER
public static final int ERROR_OBTAINING_TRANSACTION_MANAGER- See Also:
-
ERROR_BINDING_TO_TRANSACTION
public static final int ERROR_BINDING_TO_TRANSACTION- See Also:
-
ERROR_BEGINNING_TRANSACTION
public static final int ERROR_BEGINNING_TRANSACTION- See Also:
-
ERROR_COMMITTING_TRANSACTION
public static final int ERROR_COMMITTING_TRANSACTION- See Also:
-
ERROR_ROLLING_BACK_TRANSACTION
public static final int ERROR_ROLLING_BACK_TRANSACTION- See Also:
-
ERROR_MARKING_TRANSACTION_FOR_ROLLBACK
public static final int ERROR_MARKING_TRANSACTION_FOR_ROLLBACK- See Also:
-
ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE
public static final int ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE- See Also:
-
ERROR_INACTIVE_UOW
public static final int ERROR_INACTIVE_UOW- See Also:
-
ERROR_NO_TRANSACTION_ACTIVE
public static final int ERROR_NO_TRANSACTION_ACTIVE- See Also:
-
ERROR_TRANSACTION_IS_ACTIVE
public static final int ERROR_TRANSACTION_IS_ACTIVE- See Also:
-
ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED
public static final int ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED- See Also:
-
CANNOT_ENLIST_MULTIPLE_DATASOURCES
public static final int CANNOT_ENLIST_MULTIPLE_DATASOURCES- See Also:
-
EXCEPTION_IN_PROXY_EXECUTION
public static final int EXCEPTION_IN_PROXY_EXECUTION- See Also:
-
ERROR_NO_ENTITY_TRANSACTION_ACTIVE
public static final int ERROR_NO_ENTITY_TRANSACTION_ACTIVE- See Also:
-
ERROR_OBTAINING_TSR
public static final int ERROR_OBTAINING_TSR- See Also:
-
-
Constructor Details
-
TransactionException
-
TransactionException
-
-
Method Details
-
jndiLookupException
public static TransactionException jndiLookupException(String jndiName, Exception internalException) -
errorGettingExternalTransactionStatus
public static TransactionException errorGettingExternalTransactionStatus(Exception internalException) -
errorGettingExternalTransaction
-
errorBindingToExternalTransaction
-
errorBeginningExternalTransaction
-
errorCommittingExternalTransaction
-
errorRollingBackExternalTransaction
-
errorMarkingTransactionForRollback
-
externalTransactionNotActive
-
inactiveUnitOfWork
-
errorObtainingTransactionManager
-
transactionNotActive
-
transactionIsActive
-
entityTransactionWithJTANotAllowed
-
multipleResourceException
-
internalProxyException
-
entityTransactionNotActive
-
errorObtainingTsr
Build transaction exception instance when obtaining ofTransactionSynchronizationRegistry
instance failed.- Parameters:
internalException
-TransactionException
cause- Returns:
- new instance of
TransactionException
-