Exemple #1
0
 private void printScriptStackTrace(Realm realm, ScriptException e) {
   if (options.scriptStacktrace) {
     StringBuilder sb = new StringBuilder();
     printScriptFrames(sb, realm, e, 1);
     if (sb.length() == 0 && e.getCause() != null) {
       printScriptFrames(sb, realm, e.getCause(), 1);
     }
     console.writer().print(sb.toString());
   }
 }