Package io.sentry

Class SentryStackTraceFactory

java.lang.Object
io.sentry.SentryStackTraceFactory

@Internal public final class SentryStackTraceFactory extends Object
class responsible for converting Java StackTraceElements to SentryStackFrames
  • Constructor Details

    • SentryStackTraceFactory

      public SentryStackTraceFactory(@NotNull @NotNull SentryOptions options)
  • Method Details

    • getStackFrames

      @Nullable public @Nullable List<SentryStackFrame> getStackFrames(@Nullable @Nullable StackTraceElement[] elements, boolean includeSentryFrames)
      convert an Array of Java StackTraceElements to a list of SentryStackFrames
      Parameters:
      elements - Array of Java StackTraceElements
      Returns:
      list of SentryStackFrames or null if none
    • isInApp

      @Nullable public @Nullable Boolean isInApp(@Nullable @Nullable String className)
      Returns if the className is InApp or not.
      Parameters:
      className - the className
      Returns:
      true if it is or false otherwise
    • getInAppCallStack

      @Internal @NotNull public @NotNull List<SentryStackFrame> getInAppCallStack()