Package org.openrewrite.internal
Class ExceptionUtils
java.lang.Object
org.openrewrite.internal.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsCircularReferences(Throwable exception) static StringsanitizeStackTrace(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
-