Package io.sentry
Class UncaughtExceptionHandlerIntegration
- java.lang.Object
-
- io.sentry.UncaughtExceptionHandlerIntegration
-
- All Implemented Interfaces:
Integration,java.io.Closeable,java.lang.AutoCloseable,java.lang.Thread.UncaughtExceptionHandler
public final class UncaughtExceptionHandlerIntegration extends java.lang.Object implements Integration, java.lang.Thread.UncaughtExceptionHandler, java.io.Closeable
Sends any uncaught exception to Sentry, then passes the exception on to the pre-existing uncaught exception handler.
-
-
Constructor Summary
Constructors Constructor Description UncaughtExceptionHandlerIntegration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidregister(@NotNull IHub hub, @NotNull SentryOptions options)Registers an integrationvoiduncaughtException(java.lang.Thread thread, java.lang.Throwable thrown)
-
-
-
Method Detail
-
register
public final void register(@NotNull @NotNull IHub hub, @NotNull @NotNull SentryOptions options)Description copied from interface:IntegrationRegisters an integration- Specified by:
registerin interfaceIntegration- Parameters:
hub- the Huboptions- the options
-
uncaughtException
public void uncaughtException(java.lang.Thread thread, java.lang.Throwable thrown)- Specified by:
uncaughtExceptionin interfacejava.lang.Thread.UncaughtExceptionHandler
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-