Package org.apache.wicket.authorization
Class UnauthorizedInstantiationException
- 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.UnauthorizedInstantiationException
-
- All Implemented Interfaces:
Serializable
public class UnauthorizedInstantiationException extends AuthorizationException
Exception that is thrown when the creation of a component is not allowed.- Author:
- Eelco Hillenius, Jonathan Locke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnauthorizedInstantiationException(Class<T> componentClass)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends IRequestableComponent>
getComponentClass()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnauthorizedInstantiationException
public UnauthorizedInstantiationException(Class<T> componentClass)
Construct.- Type Parameters:
T
- The component type.- Parameters:
componentClass
- The unauthorized component class
-
-
Method Detail
-
getComponentClass
public Class<? extends IRequestableComponent> getComponentClass()
- Returns:
- The component class that could not be instantiated
-
-