package org.theonefx.wcframework.ioc.exception; import org.theonefx.wcframework.core.exception.BeanCreationException; /** * Exception thrown in case of a reference to a bean that's currently in creation. Typically happens when constructor autowiring matches the currently * constructed bean. * * @author Juergen Hoeller * @since 1.1 */ public class BeanCurrentlyInCreationException extends BeanCreationException { private static final long serialVersionUID = -4362901540265265894L; /** * Create a new BeanCurrentlyInCreationException, with a default error message that indicates a circular reference. * * @param beanName * the name of the bean requested */ public BeanCurrentlyInCreationException(String beanName) { super(beanName, "Requested bean is currently in creation: Is there an unresolvable circular reference?"); } /** * Create a new BeanCurrentlyInCreationException. * * @param beanName * the name of the bean requested * @param msg * the detail message */ public BeanCurrentlyInCreationException(String beanName, String msg) { super(beanName, msg); } }