n.addExtraDescription("line" , String.valueOf(saxParseException.getLineNumber()) );
n.addExtraDescription("column" , String.valueOf(saxParseException.getColumnNumber()));
}
else if (rootCauseThrowable instanceof TransformerException) {
TransformerException transformerException = (TransformerException) rootCauseThrowable;
SourceLocator sourceLocator = transformerException.getLocator();
n.setMessage ( transformerException.getMessage());
n.addExtraDescription("location", sourceLocator.getSystemId() );
n.addExtraDescription("line" , String.valueOf(sourceLocator.getLineNumber()) );
n.addExtraDescription("column" , String.valueOf(sourceLocator.getColumnNumber()) );
}
else{
n.setMessage(t.getMessage());
}