Class ExceptionUtils

java.lang.Object
org.openrewrite.internal.ExceptionUtils

public class ExceptionUtils extends Object
  • Constructor Details

    • ExceptionUtils

      public ExceptionUtils()
  • Method Details

    • sanitizeStackTrace

      public static String sanitizeStackTrace(Throwable t, Class<?> until)
      Shorten a stack trace to the first invocation of a particular class.
      Parameters:
      t - The original exception
      until - Cut the stack trace when it reaches a method in this class.
      Returns:
      The sanitized stack trace
    • containsCircularReferences

      public static boolean containsCircularReferences(Throwable exception)