Class TraceFormatting
java.lang.Object
com.carrotsearch.randomizedtesting.TraceFormatting
Utilities for dealing with throwables, stacks, etc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionStack filtering prefixes. -
Constructor Summary
ConstructorsConstructorDescriptionDefault stack traces, no filtering.TraceFormatting
(List<String> filteredPrefixes) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
appendFiltered
(StringBuilder b, Set<String> filteredSet) formatStackTrace
(Iterable<StackTraceElement> stackTrace) formatStackTrace
(StackTraceElement[] stackTrace) formatStackTrace
(StringBuilder b, Iterable<StackTraceElement> stackTrace) Format a list of stack entries into a string.formatStackTrace
(StringBuilder b, StackTraceElement[] stackTrace) Format a list of stack entries into a string.Format an exception and all of its nested stacks into a string.Format an exception and all of its nested stacks into a string.
-
Field Details
-
filteredPrefixes
Stack filtering prefixes.
-
-
Constructor Details
-
TraceFormatting
public TraceFormatting()Default stack traces, no filtering. -
TraceFormatting
-
-
Method Details
-
formatThrowable
Format an exception and all of its nested stacks into a string. -
formatThrowable
Format an exception and all of its nested stacks into a string. -
formatStackTrace
Format a list of stack entries into a string. -
formatStackTrace
-
formatStackTrace
-
formatStackTrace
Format a list of stack entries into a string. -
appendFiltered
-