Package io.sentry
Class UncaughtExceptionHandlerIntegration
java.lang.Object
io.sentry.UncaughtExceptionHandlerIntegration
- All Implemented Interfaces:
Integration,IntegrationName,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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final voidregister(@NotNull IHub hub, @NotNull SentryOptions options) Registers an integrationvoiduncaughtException(Thread thread, Throwable thrown) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.sentry.IntegrationName
addIntegrationToSdkVersion, getIntegrationName
-
Constructor Details
-
UncaughtExceptionHandlerIntegration
public UncaughtExceptionHandlerIntegration()
-
-
Method Details
-
register
Description copied from interface:IntegrationRegisters an integration- Specified by:
registerin interfaceIntegration- Parameters:
hub- the Huboptions- the options
-
uncaughtException
- Specified by:
uncaughtExceptionin interfaceThread.UncaughtExceptionHandler
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-