Package io.sentry.graphql
Class SentryDataFetcherExceptionHandler
java.lang.Object
io.sentry.graphql.SentryDataFetcherExceptionHandler
- All Implemented Interfaces:
graphql.execution.DataFetcherExceptionHandler
@Deprecated
public final class SentryDataFetcherExceptionHandler
extends Object
implements graphql.execution.DataFetcherExceptionHandler
Deprecated.
Captures exceptions that occur during data fetching, passes them to Sentry and invokes a delegate
exception handler.
-
Constructor Summary
ConstructorDescriptionSentryDataFetcherExceptionHandler
(@NotNull graphql.execution.DataFetcherExceptionHandler delegate) Deprecated.SentryDataFetcherExceptionHandler
(@NotNull IHub hub, @NotNull graphql.execution.DataFetcherExceptionHandler delegate) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<graphql.execution.DataFetcherExceptionHandlerResult>
handleException
(graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters) Deprecated.graphql.execution.DataFetcherExceptionHandlerResult
onException
(@NotNull graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters) Deprecated.
-
Constructor Details
-
SentryDataFetcherExceptionHandler
public SentryDataFetcherExceptionHandler(@NotNull @NotNull IHub hub, @NotNull @NotNull graphql.execution.DataFetcherExceptionHandler delegate) Deprecated. -
SentryDataFetcherExceptionHandler
public SentryDataFetcherExceptionHandler(@NotNull @NotNull graphql.execution.DataFetcherExceptionHandler delegate) Deprecated.
-
-
Method Details
-
handleException
public CompletableFuture<graphql.execution.DataFetcherExceptionHandlerResult> handleException(graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters) Deprecated.- Specified by:
handleException
in interfacegraphql.execution.DataFetcherExceptionHandler
-
onException
public graphql.execution.DataFetcherExceptionHandlerResult onException(@NotNull @NotNull graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters) Deprecated.- Specified by:
onException
in interfacegraphql.execution.DataFetcherExceptionHandler
-
SentryGenericDataFetcherExceptionHandler
in combination withSentryInstrumentation
instead for better error reporting.