Top Description Constructors Methods
org.springframework.beans

public abstract Class BeansException

extends NestedRuntimeException
Class Inheritance
Known Direct Subclasses
org.springframework.beans.FatalBeanException, org.springframework.beans.PropertyAccessException, org.springframework.beans.PropertyBatchUpdateException, org.springframework.beans.factory.BeanNotOfRequiredTypeException, org.springframework.beans.factory.NoSuchBeanDefinitionException
Annotations
@SuppressWarnings:serial
Imports
org.springframework.core.NestedRuntimeException, org.springframework.lang.Nullable

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.

Authors
Rod Johnson, Juergen Hoeller

Constructor Summary

AccessConstructor and Description
public
BeansException(String
the detail message
msg
)

Create a new BeansException with the specified message.

public
BeansException(String
the detail message
msg
,
Throwable
the root cause
cause
)

Create a new BeansException with the specified message and root cause.

Method Summary

Inherited from org.springframework.core.NestedRuntimeException:
containsgetMostSpecificCausegetRootCause

Constructor Detail

BeansExceptionback to summary
public BeansException(String msg)

Create a new BeansException with the specified message.

Parameters
msg:String

the detail message

BeansExceptionback to summary
public BeansException(String msg, Throwable cause)

Create a new BeansException with the specified message and root cause.

Parameters
msg:String

the detail message

cause:Throwable

the root cause