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
8997d8900d
commit
ed8964594b
@ -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
Block a user