1 16 17 package org.springframework.beans; 18 19 26 public class BeanInstantiationException extends FatalBeanException { 27 28 private Class beanClass; 29 30 31 36 public BeanInstantiationException(Class beanClass, String msg) { 37 this(beanClass, msg, null); 38 } 39 40 46 public BeanInstantiationException(Class beanClass, String msg, Throwable cause) { 47 super("Could not instantiate bean class [" + beanClass.getName() + "]: " + msg, cause); 48 this.beanClass = beanClass; 49 } 50 51 54 public Class getBeanClass() { 55 return beanClass; 56 } 57 58 } 59 | Popular Tags |