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