public class BeanReflectionException extends RuntimeException
java.lang.refelct
and java.lang.introspection
APIs.Constructor and Description |
---|
BeanReflectionException(Throwable cause,
Class<?> beanType)
Constructs a new instance of
BeanReflectionException . |
BeanReflectionException(Throwable cause,
Class<?> beanType,
String messagePattern,
Object... arguments)
Constructs a new instance of
BeanReflectionException . |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getBeanType()
Returns the type that caused the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BeanReflectionException(Throwable cause, Class<?> beanType, String messagePattern, Object... arguments)
BeanReflectionException
.cause
- the throwable that caused the exception.beanType
- the bean type, the exception is associated with.messagePattern
- the message pattern for the exception's message.arguments
- the arguments referenced by the format specifiers in the message pattern.public BeanReflectionException(Throwable cause, Class<?> beanType)
BeanReflectionException
.cause
- the throwable that caused the exception.beanType
- the bean type, the exception is associated with.public Class<?> getBeanType()
Class
object that was the target of a static
method or constructor invocation (via a ClassAccessor
) or the Class
of a bean that was the target
of a method invocation or property access (via a BeanAccessor
).Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.