Package 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
-
-
Constructor Summary
Constructors Constructor Description UnauthorizedActionException(Component component, Action action)
Construct.
-
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
-
-
-
-
Constructor Detail
-
UnauthorizedActionException
public UnauthorizedActionException(Component component, Action action)
Construct.- Parameters:
component
- The component that caused the unauthorized exceptionaction
- The action
-
-
Method Detail
-
getComponent
public Component getComponent()
- Returns:
- The component that caused the unauthorized exception
-
-