public class CsvBeanIntrospectionException extends CsvRuntimeException
NoSuchMethodException
,
IllegalAccessException
and
InvocationTargetException
. Some might notice that
this effectively converts checked exceptions into unchecked exceptions.
Introspection exceptions are coding errors that should be fixed during
development, and should not have to be handled in production code.Constructor and Description |
---|
CsvBeanIntrospectionException()
Nullary constructor.
|
CsvBeanIntrospectionException(Object bean,
Field field)
Constructor to specify the bean and field whose manipulation caused this
exception.
|
CsvBeanIntrospectionException(Object bean,
Field field,
String message)
Constructor to provide all information connected to the error raised.
|
CsvBeanIntrospectionException(String message)
Constructor with a human-readable error message.
|
Modifier and Type | Method and Description |
---|---|
Object |
getBean()
Gets the bean that was to be introspected.
|
Field |
getField()
Gets the field from the Reflection API that was involved in the error.
|
String |
getLocalizedMessage() |
String |
getMessage()
Gets a human-readable error message.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CsvBeanIntrospectionException()
public CsvBeanIntrospectionException(String message)
message
- Error messagepublic CsvBeanIntrospectionException(Object bean, Field field)
bean
- The bean that was to be manipulatedfield
- The field in the beanpublic String getMessage()
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public Object getBean()
bean
is marked transient
, because
Object
is not Serializable
. If
for any reason this exception is serialized and deserialized, this method
will subsequently return null
.public Field getField()
field
is marked transient
, because
Field
is not Serializable
. If
for any reason this exception is serialized and deserialized, this method
will subsequently return null
.Copyright © 2005–2023. All rights reserved.