if (except == null) {
except = sex;
}
MarshalException marshalEx = new MarshalException(except);
if (handler.getDocumentLocator() != null) {
FileLocation location = new FileLocation();
location.setFilename(handler.getDocumentLocator().getSystemId());
location.setLineNumber(handler.getDocumentLocator().getLineNumber());
location.setColumnNumber(handler.getDocumentLocator().getColumnNumber());
marshalEx.setLocation(location);
}
throw marshalEx;
}