Class StackTraceFilter

  • All Implemented Interfaces:
    java.io.Serializable

    public class StackTraceFilter
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StackTraceElement[] filter​(java.lang.StackTraceElement[] target, boolean keepTop)
      Example how the filter works (+/- means good/bad): [a+, b+, c-, d+, e+, f-, g+] -> [a+, b+, d+, e+, g+] Basically removes all bad from the middle.
      java.lang.String findSourceFile​(java.lang.StackTraceElement[] target, java.lang.String defaultValue)
      Finds the source file of the target stack trace.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StackTraceFilter

        public StackTraceFilter()
    • Method Detail

      • filter

        public java.lang.StackTraceElement[] filter​(java.lang.StackTraceElement[] target,
                                                    boolean keepTop)
        Example how the filter works (+/- means good/bad): [a+, b+, c-, d+, e+, f-, g+] -> [a+, b+, d+, e+, g+] Basically removes all bad from the middle. If any good are in the middle of bad those are also removed.
      • findSourceFile

        public java.lang.String findSourceFile​(java.lang.StackTraceElement[] target,
                                               java.lang.String defaultValue)
        Finds the source file of the target stack trace. Returns the default value if source file cannot be found.