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 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 interface graphql.execution.DataFetcherExceptionHandler
    • handleException

      @Nullable public @Nullable CompletableFuture<graphql.execution.DataFetcherExceptionHandlerResult> handleException(graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters)
      Specified by:
      handleException in interface graphql.execution.DataFetcherExceptionHandler