Class OpencastDataFetcherExceptionHandler

java.lang.Object
org.opencastproject.graphql.execution.OpencastDataFetcherExceptionHandler
All Implemented Interfaces:
graphql.execution.DataFetcherExceptionHandler

public class OpencastDataFetcherExceptionHandler extends Object implements graphql.execution.DataFetcherExceptionHandler
  • Constructor Details

    • OpencastDataFetcherExceptionHandler

      public OpencastDataFetcherExceptionHandler()
  • Method Details

    • handleException

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

      protected Throwable unwrap(Throwable exception)
      Called to unwrap an exception to a more suitable cause if required.
      Parameters:
      exception - the exception to unwrap
      Returns:
      the suitable exception