- Common ways to obtain DocumentException
private void myMethod () {DocumentException d =
Throwable cause;Throwable nestedException;new DocumentException(cause.getMessage(), nestedException)
String message;new DocumentException(message)
Throwable nestedException;new DocumentException("Could not load the DOM Document " + "class: " + name, nestedException)
- Smart code suggestions by Codota
}
/** * 读取xml,加载到dom */ public void reloadDom() { SAXReader reader = new SAXReader(); try { document = reader.read(new File(ConstantsTools.PATH_CONFIG)); } catch (DocumentException e) { e.printStackTrace(); logger.error("Read config xml error:" + e.toString()); } }