org.springframework.beans
abstract public class: BeansException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.beans.BeansException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XmlBeanDefinitionStoreException, NoSuchBeanDefinitionException, ApplicationContextException, UnsatisfiedDependencyException, MethodInvocationException, BeanDefinitionStoreException, BeanCreationNotAllowedException, FactoryBeanNotInitializedException, NotReadablePropertyException, CannotLoadBeanClassException, BeanInstantiationException, BeanDefinitionParsingException, NotWritablePropertyException, BeanIsAbstractException, PropertyAccessExceptionsException, BeanIsNotAFactoryException, BeanCreationException, BootstrapException, BeanNotOfRequiredTypeException, PropertyBatchUpdateException, PropertyAccessException, BeanDefinitionValidationException, TypeMismatchException, BeanCurrentlyInCreationException, NullValueInNestedPathException, FatalBeanException, BeanInitializationException, InvalidPropertyException
Abstract superclass for all exceptions thrown in the beans package
and subpackages.
Note that this is a runtime (unchecked) exception. Beans exceptions
are usually fatal; there is no reason for them to be checked.
| Constructor: |
public BeansException(String msg) {
super(msg);
}
Create a new BeansException with the specified message. Parameters:
msg - the detail message
|
public BeansException(String msg,
Throwable cause) {
super(msg, cause);
}
Create a new BeansException with the specified message
and root cause. Parameters:
msg - the detail message
cause - the root cause
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |