public class StackTraceUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isFrameContainingXBeforeFrameContainingY(java.lang.String firstClass,
java.lang.String secondClass,
java.lang.StackTraceElement[] stackTrace)
Traverses the stack trace element array looking for instances that contain the first or second
Strings in the className property.
|
public static boolean isFrameContainingXBeforeFrameContainingY(java.lang.String firstClass, java.lang.String secondClass, java.lang.StackTraceElement[] stackTrace)
firstClass
- The first class to look for.secondClass
- The second class to look for.stackTrace
- The stack trace.java.lang.IllegalArgumentException
- if neither class is found.