"Look at your properties file and make sure the\n" + "name of the template loader is correct. Here is the\n" + "error: " + StringUtils.stackTrace(e)); "\nError is: " + StringUtils.stackTrace(e));
void parseTree(InternalContextAdapter ica) { try { BufferedReader br = new BufferedReader(new StringReader(macrobody)); nodeTree = rsvc.parse(br, "VM:" + macroname, true); nodeTree.init(ica,null); } catch ( Exception e ) { rsvc.error("VelocimacroManager.parseTree() : exception " + macroname + " : " + StringUtils.stackTrace(e)); } } }
/** * First passes off the message at the specified level, * then passes off stack trace of the Throwable as a * 2nd message at the same level. * @param level * @param message * @param t */ public void log(int level, String message, Throwable t) { logSystem.logVelocityMessage(level, message); logSystem.logVelocityMessage(level, StringUtils.stackTrace(t)); }
/** * First passes off the message at the specified level, * then passes off stack trace of the Throwable as a * 2nd message at the same level. * @param level * @param message * @param t */ public void log(int level, String message, Throwable t) { logSystem.logVelocityMessage(level, message); logSystem.logVelocityMessage(level, StringUtils.stackTrace(t)); }
/** * Handle logging. * * @param String message to log */ private void log(int level, Object message) { String out; /* * now, see if the logging stacktrace is on * and modify the message to suit */ if ( showStackTrace() && (message instanceof Throwable || message instanceof Exception) ) { out = StringUtils.stackTrace((Throwable)message); } else { out = message.toString(); } /* * just log it, as we are guaranteed now to have some * kind of logger - save the if() */ logSystem.logVelocityMessage( level, out); }
" : " + StringUtils.stackTrace(e));
rsvc.error ("Parser Error: #macro() : " + templateName + " : " + StringUtils.stackTrace(mee)); throw new ParseException(mee.getMessage()); rsvc.error ("Parser Exception: " + templateName + " : " + StringUtils.stackTrace(pe)); throw new ParseException (pe.currentToken, pe.expectedTokenSequences, pe.tokenImage); rsvc.error ("Parser Error: " + templateName + " : " + StringUtils.stackTrace(e));
" : " + StringUtils.stackTrace(e));
"() : " + StringUtils.stackTrace(e));