Class NoSuchBeanException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NoSuchBeanException
    extends BeanException
    The Class NoSuchBeanException.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NoSuchBeanException​(java.lang.Class<?> type)
      Instantiates a new NoSuchBeanException.
      NoSuchBeanException​(java.lang.Class<?> type, java.lang.String id)
      Instantiates a new NoSuchBeanException.
      NoSuchBeanException​(java.lang.String id)
      Instantiates a new NoSuchBeanException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Returns the id of the missing bean.
      java.lang.Class<?> getType()
      Returns the type required type of the missing bean.
      • 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

      • NoSuchBeanException

        public NoSuchBeanException​(java.lang.String id)
        Instantiates a new NoSuchBeanException.
        Parameters:
        id - the bean id
      • NoSuchBeanException

        public NoSuchBeanException​(java.lang.Class<?> type)
        Instantiates a new NoSuchBeanException.
        Parameters:
        type - the required type of the missing bean
      • NoSuchBeanException

        public NoSuchBeanException​(java.lang.Class<?> type,
                                   java.lang.String id)
        Instantiates a new NoSuchBeanException.
        Parameters:
        type - the required type
        id - the bean id
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the id of the missing bean.
        Returns:
        the bean id
      • getType

        public java.lang.Class<?> getType()
        Returns the type required type of the missing bean.
        Returns:
        the required type