Class UnauthorizedInstantiationException

  • All Implemented Interfaces:
    java.io.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends IRequestableComponent> getComponentClass()  
      • 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

      • UnauthorizedInstantiationException

        public UnauthorizedInstantiationException​(java.lang.Class<T> componentClass)
        Construct.
        Type Parameters:
        T - The component type.
        Parameters:
        componentClass - The unauthorized component class
    • Method Detail

      • getComponentClass

        public java.lang.Class<? extends IRequestableComponent> getComponentClass()
        Returns:
        The component class that could not be instantiated