Package io.sentry

Class SentryExceptionFactory

java.lang.Object
io.sentry.SentryExceptionFactory

@Internal public final class SentryExceptionFactory extends Object
class responsible for converting Java Throwable to SentryExceptions
  • Constructor Details

    • SentryExceptionFactory

      public SentryExceptionFactory(@NotNull @NotNull SentryStackTraceFactory sentryStackTraceFactory)
      ctor SentryExceptionFactory
      Parameters:
      sentryStackTraceFactory - the sentryStackTraceFactory
  • Method Details

    • getSentryExceptionsFromThread

      @NotNull public @NotNull List<SentryException> getSentryExceptionsFromThread(@NotNull @NotNull SentryThread thread, @NotNull @NotNull Mechanism mechanism, @NotNull @NotNull Throwable throwable)
    • getSentryExceptions

      @NotNull public @NotNull List<SentryException> getSentryExceptions(@NotNull @NotNull Throwable throwable)
      Creates a new instance from the given throwable.
      Parameters:
      throwable - the Throwable to build this instance from