Package org.olat.core.logging

Examples of org.olat.core.logging.OLATRuntimeException.printStackTrace()


  private void printOriginStackTrace() {
    // use stacktrace to find out more where the filter was used
    OLATRuntimeException ore = new OLATRuntimeException("XSSFilter dummy", null);
    final Writer result = new StringWriter();
    final PrintWriter printWriter = new PrintWriter(result);
    ore.printStackTrace(printWriter);
  }
 
  private String getCleanHTML(String original)  {
    Policy policy = null;
    try {
View Full Code Here


    sb.append(") for locale ").append(locale);
    OLATRuntimeException ore = new OLATRuntimeException("transl dummy",null);
    //use stracktrace to find out more where the missing translation comes from
    final Writer result = new StringWriter();
    final PrintWriter printWriter = new PrintWriter(result);
    ore.printStackTrace(printWriter);
   
    sb.append(result.toString());
    return sb.toString();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.