Class 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 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