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.
please use SentryGenericDataFetcherExceptionHandler in combination with SentryInstrumentation instead for better error reporting.
Captures exceptions that occur during data fetching, passes them to Sentry and invokes a delegate exception handler.
  • 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 interface graphql.execution.DataFetcherExceptionHandler
    • onException

      public graphql.execution.DataFetcherExceptionHandlerResult onException(@NotNull @NotNull graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters)
      Deprecated.
      Specified by:
      onException in interface graphql.execution.DataFetcherExceptionHandler