writer.characters(e.getClass().getName() + ": " + e.getLocalizedMessage());
final StackTraceElement[] trace = e.getStackTrace();
for(final StackTraceElement element : trace) {
final Attribute attributes[] = {
attribute(new QName("file"), element.getFileName()),
attribute(new QName("class"), element.getClassName()),
attribute(new QName("method"), element.getMethodName()),
attribute(new QName("line"), Integer.toString(element.getLineNumber()))
};