org.apache.wicket.authorization
Class UnauthorizedActionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.WicketRuntimeException
org.apache.wicket.authorization.AuthorizationException
org.apache.wicket.authorization.UnauthorizedActionException
- All Implemented Interfaces:
- 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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
UnauthorizedActionException
public UnauthorizedActionException(Component component,
Action action)
- Construct.
- Parameters:
component
- The component that caused the unauthorized exceptionaction
- The action
getAction
public Action getAction()
- Returns:
- The action that was forbidden
getComponent
public Component getComponent()
- Returns:
- The component that caused the unauthorized exception
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.