Package io.sentry
Class UncaughtExceptionHandlerIntegration
java.lang.Object
io.sentry.UncaughtExceptionHandlerIntegration
- All Implemented Interfaces:
Integration
,Closeable
,AutoCloseable
,Thread.UncaughtExceptionHandler
public final class UncaughtExceptionHandlerIntegration
extends Object
implements Integration, Thread.UncaughtExceptionHandler, Closeable
Sends any uncaught exception to Sentry, then passes the exception on to the pre-existing uncaught
exception handler.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
register
(@NotNull IHub hub, @NotNull SentryOptions options) Registers an integrationvoid
uncaughtException
(Thread thread, Throwable thrown)
-
Constructor Details
-
UncaughtExceptionHandlerIntegration
public UncaughtExceptionHandlerIntegration()
-
-
Method Details
-
register
Description copied from interface:Integration
Registers an integration- Specified by:
register
in interfaceIntegration
- Parameters:
hub
- the Huboptions
- the options
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-