handler.startElement(EXCEPTION_NS, "exception", "ex:exception", attr);
message = current instanceof LocatableException ? ((LocatableException)current).getRawMessage() : current.getMessage();
simpleElement("message", attr, message, handler);
attr.clear();
handler.startElement(EXCEPTION_NS, "locations", "ex:locations", attr);
dumpLocation(loc, attr, handler);
if (current instanceof MultiLocatable) {
List locations = ((MultiLocatable)current).getLocations();