Class StackTraceUtil

java.lang.Object
com.vaadin.flow.internal.StackTraceUtil

public final class StackTraceUtil extends Object
Helpers for finding the application code in a stack trace.

For internal use only. May be renamed or removed in a future release.

Since:
25.4
  • Method Details

    • isApplicationClass

      public static boolean isApplicationClass(String className)
      Checks whether the given class is application code rather than one of the framework, JDK or dependency injection container classes that sit between application code and the API it calls. A stack trace points at the code that made a call through its first frame of an application class.

      Only the framework packages that application code calls directly are excluded, so framework code that runs on its own, such as the router, counts as application code.

      Parameters:
      className - the fully qualified name of the class, not null
      Returns:
      true if the class is application code, false otherwise