SilverStream
Application Server 3.5

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

Constructor Summary
AgoSecurityException()
           
 
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

AgoSecurityException

public AgoSecurityException()

SilverStream
Application Server 3.5