mirror of https://github.com/apache/poi.git
Swap Exception for Throwable, to skip a wider range of problems (eg GAE) when attempting to set an xml security manager as best we can
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1650290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f465ee1313
commit
ef2ca85280
|
@ -80,8 +80,8 @@ public final class DocumentHelper {
|
|||
documentBuilderFactory.setAttribute("http://apache.org/xml/properties/security-manager", mgr);
|
||||
// Stop once one can be setup without error
|
||||
return;
|
||||
} catch (Exception e) {
|
||||
logger.log(POILogger.WARN, "SAX Security Manager could not be setup", e);
|
||||
} catch (Throwable t) {
|
||||
logger.log(POILogger.WARN, "SAX Security Manager could not be setup", t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue