Class AccessControlException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AccessControlException
    extends EnterpriseSecurityException
    An AccessControlException should be thrown when a user attempts to access a resource that they are not authorized for.
    Author:
    Jeff Williams (jeff.williams@aspectsecurity.com)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AccessControlException()
      Instantiates a new access control exception.
        AccessControlException​(java.lang.String userMessage, java.lang.String logMessage)
      Creates a new instance of AccessControlException.
        AccessControlException​(java.lang.String userMessage, java.lang.String logMessage, java.lang.Throwable cause)
      Instantiates a new access control exception.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AccessControlException

        protected AccessControlException()
        Instantiates a new access control exception.
      • AccessControlException

        public AccessControlException​(java.lang.String userMessage,
                                      java.lang.String logMessage)
        Creates a new instance of AccessControlException.
        Parameters:
        userMessage -
        logMessage -
      • AccessControlException

        public AccessControlException​(java.lang.String userMessage,
                                      java.lang.String logMessage,
                                      java.lang.Throwable cause)
        Instantiates a new access control exception.
        Parameters:
        userMessage - the message displayed to the user
        logMessage - the message logged
        cause - the root cause