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 void
close()
void
register(@NotNull IHub hub, @NotNull SentryOptions options)
Registers an integrationvoid
uncaughtException(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:Integration
Registers an integration- Specified by:
register
in interfaceIntegration
- Parameters:
hub
- the Huboptions
- the options
-
uncaughtException
public void uncaughtException(java.lang.Thread thread, java.lang.Throwable thrown)
- Specified by:
uncaughtException
in interfacejava.lang.Thread.UncaughtExceptionHandler
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-