log.debug(e.getMessage()); log.debug(e.getMessage()); if (e.getMessage().contains("#BOOLEAN") ) { log.debug("Fallback handling XPath of form: " + xpath + " in case of " + e.getMessage() ); if (xo.bool(cachedXPathAPI.getXPathContext())) { return "true"; return "false"; } else if (e.getMessage().contains("#NUMBER") ) { log.debug("Fallback handling XPath of form: " + xpath + " in case of " + e.getMessage() ); double d = xo.num(cachedXPathAPI.getXPathContext()); if (xpath.trim().startsWith("count(") return "" + d; } else if (e.getMessage().contains("#STRING") ) { log.debug("Fallback handling XPath of form: " + xpath + " in case of " + e.getMessage() ); return xo.xstr(cachedXPathAPI.getXPathContext()).toString(); } else { log.error(e.getMessage()); log.error("Handle XPath of form: " + xpath); throw e;
log.debug(e.getMessage()); log.debug(e.getMessage()); if (e.getMessage().contains("#BOOLEAN") ) { log.debug("Fallback handling XPath of form: " + xpath + " in case of " + e.getMessage() ); if (xo.bool(cachedXPathAPI.getXPathContext())) { return "true"; return "false"; } else if (e.getMessage().contains("#NUMBER") ) { log.debug("Fallback handling XPath of form: " + xpath + " in case of " + e.getMessage() ); double d = xo.num(cachedXPathAPI.getXPathContext()); if (xpath.trim().startsWith("count(") return "" + d; } else if (e.getMessage().contains("#STRING") ) { log.debug("Fallback handling XPath of form: " + xpath + " in case of " + e.getMessage() ); return xo.xstr(cachedXPathAPI.getXPathContext()).toString(); } else { log.error(e.getMessage()); log.error("Handle XPath of form: " + xpath); throw e;
throw new TransformerException(e.getMessage(), e);
throw new TransformerException(e.getMessage(), e);
if(CONTINUE_AFTER_FATAL_ERROR.equals(e.getMessage()))
if(CONTINUE_AFTER_FATAL_ERROR.equals(e.getMessage()))