/** * Better sax exception. * * @param saxe the saxe * @param newMessage the new message * * @return the sAX exception */ public static SAXException betterSAXException(SAXException saxe, String newMessage) { Exception cause = saxe.getException(); SAXException betterException = new SAXException(newMessage, cause); betterException.setStackTrace(saxe.getStackTrace()); return betterException; }
logger.info(e.getStackTrace()); } catch(IOException e) { logger.info(e.getStackTrace());