|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.reflect.PropertyExceptionBuilder
public class PropertyExceptionBuilder
Provide a more flexible way of building a ArooaPropertyException
.
Constructor Summary | |
---|---|
PropertyExceptionBuilder()
|
Method Summary | |
---|---|
PropertyExceptionBuilder |
causedBy(Exception cause)
Add the exception that is the cause. |
ArooaNoPropertyException |
failedReadingPropertyException(String property)
Provide an ArooaNoPropertyException for when failing
to read a property. |
ArooaNoPropertyException |
failedWritingPropertyException(String property)
Provide an ArooaNoPropertyException for when failing
to write a property. |
PropertyExceptionBuilder |
forBean(Object bean)
Add a bean to the exception message. |
PropertyExceptionBuilder |
forClass(Class<?> theClass)
Add a class to the exception message. |
protected String |
getBeanAndClassMessageSection()
Helper method to get the bean and class part of the message. |
ArooaNoPropertyException |
noPropertyException(String property)
Provide an ArooaNoPropertyException for when there is no
property either readable or writable. |
PropertyExceptionBuilder |
withOverview(BeanOverview overview)
Provide an BeanOverview of the bean causing the problem. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyExceptionBuilder()
Method Detail |
---|
public PropertyExceptionBuilder forClass(Class<?> theClass)
theClass
-
public PropertyExceptionBuilder forBean(Object bean)
bean
-
public PropertyExceptionBuilder withOverview(BeanOverview overview)
BeanOverview
of the bean causing the problem.
overview
-
public PropertyExceptionBuilder causedBy(Exception cause)
cause
-
public ArooaNoPropertyException failedReadingPropertyException(String property)
ArooaNoPropertyException
for when failing
to read a property.
property
-
public ArooaNoPropertyException failedWritingPropertyException(String property)
ArooaNoPropertyException
for when failing
to write a property.
property
-
public ArooaNoPropertyException noPropertyException(String property)
ArooaNoPropertyException
for when there is no
property either readable or writable.
property
-
protected String getBeanAndClassMessageSection()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |