com.sssw.rt.util
Class AgoSecurityException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sssw.rt.util.AgoException
|
+--com.sssw.rt.util.AgoApiException
|
+--com.sssw.rt.util.AgoSecurityException
- All Implemented Interfaces:
- AgiParentedException, Serializable
- Direct Known Subclasses:
- AgoBadAclException, AgoBadPrincipalException, AgoComplexAclException
- public class AgoSecurityException
- extends AgoApiException
The base class of declared exceptions thrown by methods
in the public API when a security violation occurs.
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 (AgoSecurityException e) {
// The user did not have write access to the data source.
agGeneral.showMessage ("Error",
"Permission denied. You do not have write permission on the data source.");
}
return (false);
}
- 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 |
AgoSecurityException
public AgoSecurityException()