Class ExceptionUtils


  • public final class ExceptionUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String stackTraceInSingleLine​(java.lang.Exception e)
      Returns the stacktrace in one line.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • stackTraceInSingleLine

        public static java.lang.String stackTraceInSingleLine​(java.lang.Exception e)
        Returns the stacktrace in one line. It replaces all whitespaces with space and removes multiple whitespaces.
        Parameters:
        e - the Exception
        Returns:
        the Stacktrace String.