Class StackTraceProvider
- java.lang.Object
-
- org.apache.maven.surefire.api.report.StackTraceProvider
-
public class StackTraceProvider extends java.lang.ObjectUtility class for stack trace capture with filtering and truncation to reduce memory consumption. Filters out framework classes and limits to a maximum number of frames.- Since:
- 3.6.0
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_FRAMES
-
Constructor Summary
Constructors Constructor Description StackTraceProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigure(java.lang.String prefixes)Configure framework prefixes to filter from stack traces.static voidconfigure(java.lang.String prefixes, int maxFrameCount)Configure framework prefixes and maximum frame count for stack traces.
-
-
-
Field Detail
-
DEFAULT_MAX_FRAMES
public static final int DEFAULT_MAX_FRAMES
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public static void configure(java.lang.String prefixes)
Configure framework prefixes to filter from stack traces. When specified, this REPLACES the default prefixes (does not add to them). To disable all filtering, pass an empty string. To use defaults, pass null.- Parameters:
prefixes- comma-separated list of package prefixes to filter, or empty to disable filtering
-
configure
public static void configure(java.lang.String prefixes, int maxFrameCount)Configure framework prefixes and maximum frame count for stack traces.- Parameters:
prefixes- comma-separated list of package prefixes to filter, or empty to disable filtering, or null for defaultsmaxFrameCount- maximum number of stack trace frames to capture; 0 or negative disables stack trace capture
-
-