Package org.eclipse.emf.cdo.util
Klasse CommitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.emf.cdo.util.CommitException
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
ConcurrentAccessException
,DataIntegrityException
A checked exception being thrown from
CDOUserTransaction.commit()
in case of commit problems such as commit conflicts.
This class is the root of an exception hierarchy that allows to determine and handle specific causes of commit problems:
CDOTransaction transaction = session.openTransaction(); for (;;) { transaction.getViewLock().lock(); try { CDOResource resource = transaction.getResource("/stock/resource1"); // Modify the model here... transaction.commit(); break; } catch (ConcurrentAccessException ex) { transaction.rollback(); } catch (CommitException ex) { throw ex.wrap(); } finally { transaction.getViewLock().unlock(); } }Instances of this class indicate low-level technical problems such as database or network issues.
- Seit:
- 3.0
- Autor:
- Eike Stepper
- Siehe auch:
- No Extend
- This interface is not intended to be extended by clients.
- No Instantiate
- This class is not intended to be instantiated by clients.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCommitException
(String message) CommitException
(String message, Throwable cause) CommitException
(Throwable cause) -
Methodenübersicht
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
CommitException
public CommitException() -
CommitException
-
CommitException
-
CommitException
-
-
Methodendetails
-
isLocal
public boolean isLocal()- Seit:
- 4.2
-
wrap
public org.eclipse.net4j.util.transaction.TransactionException wrap()- Seit:
- 4.2
-