spring-framework / org.springframework.beans.factory / CannotLoadBeanClassException

CannotLoadBeanClassException

open class CannotLoadBeanClassException : FatalBeanException

Exception thrown when the BeanFactory cannot load the specified class of a given bean.

Author
Juergen Hoeller

Since
2.0

Constructors

<init>

CannotLoadBeanClassException(resourceDescription: String, beanName: String, beanClassName: String, cause: ClassNotFoundException)
CannotLoadBeanClassException(resourceDescription: String, beanName: String, beanClassName: String, cause: LinkageError)

Create a new CannotLoadBeanClassException.

Functions

getBeanClassName

open fun getBeanClassName(): String

Return the name of the class we were trying to load.

getBeanName

open fun getBeanName(): String

Return the name of the bean requested.

getResourceDescription

open fun getResourceDescription(): String

Return the description of the resource that the bean definition came from.