Package org.openrewrite.internal
Class ExceptionUtils
java.lang.Object
org.openrewrite.internal.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsCircularReferences
(Throwable exception) static String
sanitizeStackTrace
(Throwable t, Class<?> until) Shorten a stack trace to the first invocation of a particular class.
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
sanitizeStackTrace
Shorten a stack trace to the first invocation of a particular class.- Parameters:
t
- The original exceptionuntil
- Cut the stack trace when it reaches a method in this class.- Returns:
- The sanitized stack trace
-
containsCircularReferences
-