Class UnauthorizedActionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnauthorizedActionException
    extends AuthorizationException
    Exception that is thrown when an action is not authorized.
    Author:
    Jonathan Locke, Eelco Hillenius
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Action getAction()  
      Component getComponent()  
      • 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

      • UnauthorizedActionException

        public UnauthorizedActionException​(Component component,
                                           Action action)
        Construct.
        Parameters:
        component - The component that caused the unauthorized exception
        action - The action
    • Method Detail

      • getAction

        public Action getAction()
        Returns:
        The action that was forbidden
      • getComponent

        public Component getComponent()
        Returns:
        The component that caused the unauthorized exception