return result;
}
protected Throwable buildDescription(Throwable exception)
{
BeanInfo info;
Class exceptionClass;
ExceptionProperty property;
PropertyDescriptor[] descriptors;
PropertyDescriptor descriptor;
Throwable next = null;
int i;
Object value;
Method method;
ExceptionProperty[] properties;
ExceptionDescription description;
String stringValue;
String message;
String[] stackTrace = null;
propertyDescriptions.clear();
message = exception.getMessage();
exceptionClass = exception.getClass();
// Get properties, ignoring those in Throwable and higher
// (including the 'message' property).
try
{
info = Introspector.getBeanInfo(exceptionClass, Throwable.class);
}
catch (IntrospectionException e)
{
return null;
}
descriptors = info.getPropertyDescriptors();
for (i = 0; i < descriptors.length; i++)
{
descriptor = descriptors[i];