Package io.sentry
Class SentryExceptionFactory
java.lang.Object
io.sentry.SentryExceptionFactory
class responsible for converting Java Throwable to SentryExceptions
-
Constructor Summary
ConstructorDescriptionSentryExceptionFactory
(@NotNull SentryStackTraceFactory sentryStackTraceFactory) ctor SentryExceptionFactory -
Method Summary
Modifier and TypeMethodDescription@NotNull List<SentryException>
getSentryExceptions
(@NotNull Throwable throwable) Creates a new instance from the giventhrowable
.@NotNull List<SentryException>
getSentryExceptionsFromThread
(@NotNull SentryThread thread, @NotNull Mechanism mechanism, @NotNull Throwable throwable)
-
Constructor Details
-
SentryExceptionFactory
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 giventhrowable
.- Parameters:
throwable
- theThrowable
to build this instance from
-