com.sssw.rt.util
Class AgoDataConcurrencyException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sssw.rt.util.AgoException
|
+--com.sssw.rt.util.AgoApiException
|
+--com.sssw.rt.util.AgoDataException
|
+--com.sssw.rt.util.AgoDataConcurrencyException
- All Implemented Interfaces:
- AgiParentedException, Serializable
- public class AgoDataConcurrencyException
- extends AgoDataException
The subclass of AgoDataException that indicates that
a concurrency conflict occurred between two users, for
example an attempt to update a row that has been
deleted by another user.
Example:
// This code attached to a save button on a form checks to see if data in
// the dataset has changed, and if so, updates the data source.
try {
// If any data changed
if (agData.haveRowsChanged()) {
agData.updateRows();
}
}
catch (AgoDataConcurrencyException e) {
// Someone may have deleted a row we are trying to update. Tell the user.
agGeneral.showMessage ("Warning",
"A concurrency error occurred while trying to update the data. " +
"Data you have modified may have been deleted by another user.");
}
- See Also:
- Serialized Form
Methods inherited from class com.sssw.rt.util.AgoException |
copyTo,
getExceptionHTML,
getExceptionMessage,
getExceptionMessage,
getHTML,
getMessage,
getMessage,
getParentException,
printStackTrace,
printStackTrace,
printStackTrace,
setHTML |
AgoDataConcurrencyException
public AgoDataConcurrencyException()