SilverStream
Application Server 3.5

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

Constructor Summary
AgoDataConcurrencyException()
           
 
Methods inherited from class com.sssw.rt.util.AgoDataException
getSource
 
Methods inherited from class com.sssw.rt.util.AgoException
copyTo, getExceptionHTML, getExceptionMessage, getExceptionMessage, getHTML, getMessage, getMessage, getParentException, printStackTrace, printStackTrace, printStackTrace, setHTML
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods implemented from interface com.sssw.rt.util.AgiParentedException
getExceptionParent
 

Constructor Detail

AgoDataConcurrencyException

public AgoDataConcurrencyException()

SilverStream
Application Server 3.5