com.sssw.rt.util
Class AgoTransientSystemException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sssw.rt.util.AgoException
|
+--com.sssw.rt.util.AgoApiException
|
+--com.sssw.rt.util.AgoSystemException
|
+--com.sssw.rt.util.AgoTransientSystemException
- All Implemented Interfaces:
- AgiParentedException, Serializable
- Direct Known Subclasses:
- AgoDatabaseConnectException, AgoResultTimeoutException, AgoTooManyRowsException
- public class AgoTransientSystemException
- extends AgoSystemException
The subclass of AgoSystemException that indicates that
the exceptional condition is transient, and retrying
the operation may result in success.
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 (AgoTransientSystemException e) {
// A transient system error occurred on the server indicating that
// trying again may be successful.
try {
// Wait a second
Thread.sleep (1000);
// Try again
agData.updateRows();
}
catch (Exception e) {
agGeneral.showMessage ("Error", "Error " + e.toString() +
" trying to update data on server.");
}
}
- 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 |
AgoTransientSystemException
public AgoTransientSystemException()