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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException -
Constructor Summary
ConstructorsConstructorDescriptionTransactionException(String message) TransactionException(String message, Exception internalException) -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionExceptionstatic TransactionExceptionstatic TransactionExceptionerrorBeginningExternalTransaction(Exception internalException) static TransactionExceptionerrorBindingToExternalTransaction(Exception internalException) static TransactionExceptionerrorCommittingExternalTransaction(Exception internalException) static TransactionExceptionerrorGettingExternalTransaction(Exception internalException) static TransactionExceptionerrorGettingExternalTransactionStatus(Exception internalException) static TransactionExceptionerrorMarkingTransactionForRollback(Exception internalException) static TransactionExceptionerrorObtainingTransactionManager(Exception internalException) static TransactionExceptionerrorObtainingTsr(Exception internalException) Build transaction exception instance when obtaining ofTransactionSynchronizationRegistryinstance failed.static TransactionExceptionerrorRollingBackExternalTransaction(Exception internalException) static TransactionExceptionstatic TransactionExceptioninactiveUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork) static TransactionExceptionstatic TransactionExceptionjndiLookupException(String jndiName, Exception internalException) static TransactionExceptionstatic TransactionExceptionstatic TransactionExceptionMethods 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, toStringMethods 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
public static TransactionException inactiveUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork) -
errorObtainingTransactionManager
-
transactionNotActive
-
transactionIsActive
-
entityTransactionWithJTANotAllowed
-
multipleResourceException
-
internalProxyException
-
entityTransactionNotActive
-
errorObtainingTsr
Build transaction exception instance when obtaining ofTransactionSynchronizationRegistryinstance failed.- Parameters:
internalException-TransactionExceptioncause- Returns:
- new instance of
TransactionException
-