Class SentryDataFetcherExceptionHandler

  • All Implemented Interfaces:
    graphql.execution.DataFetcherExceptionHandler

    public final class SentryDataFetcherExceptionHandler
    extends java.lang.Object
    implements graphql.execution.DataFetcherExceptionHandler
    Captures exceptions that occur during data fetching, passes them to Sentry and invokes a delegate exception handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      graphql.execution.DataFetcherExceptionHandlerResult onException​(@NotNull graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface graphql.execution.DataFetcherExceptionHandler

        handleException
    • Constructor Detail

      • SentryDataFetcherExceptionHandler

        public SentryDataFetcherExceptionHandler​(@NotNull
                                                 @NotNull io.sentry.IHub hub,
                                                 @NotNull
                                                 @NotNull graphql.execution.DataFetcherExceptionHandler delegate)
      • SentryDataFetcherExceptionHandler

        public SentryDataFetcherExceptionHandler​(@NotNull
                                                 @NotNull graphql.execution.DataFetcherExceptionHandler delegate)
    • Method Detail

      • onException

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