spring-framework / org.springframework.beans / MethodInvocationException

MethodInvocationException

open class MethodInvocationException : PropertyAccessException

Thrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.

Author
Rod Johnson

Constructors

<init>

MethodInvocationException(propertyChangeEvent: PropertyChangeEvent, cause: Throwable)

Create a new MethodInvocationException.

Properties

ERROR_CODE

static val ERROR_CODE: String

Error code that a method invocation error will be registered with.

Functions

getErrorCode

open fun getErrorCode(): String

Inherited Functions

getPropertyChangeEvent

open fun getPropertyChangeEvent(): PropertyChangeEvent

Return the PropertyChangeEvent that resulted in the problem.

May be null; only available if an actual bean property was affected.

getPropertyName

open fun getPropertyName(): String

Return the name of the affected property, if available.

getValue

open fun getValue(): Any

Return the affected value that was about to be set, if any.