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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<graphql.execution.DataFetcherExceptionHandlerResult> handleException(graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters) protected ThrowableCalled to unwrap an exception to a more suitable cause if required.
-
Constructor Details
-
OpencastDataFetcherExceptionHandler
public OpencastDataFetcherExceptionHandler()
-
-
Method Details
-
handleException
public CompletableFuture<graphql.execution.DataFetcherExceptionHandlerResult> handleException(graphql.execution.DataFetcherExceptionHandlerParameters handlerParameters) - Specified by:
handleExceptionin interfacegraphql.execution.DataFetcherExceptionHandler
-
unwrap
Called to unwrap an exception to a more suitable cause if required.- Parameters:
exception- the exception to unwrap- Returns:
- the suitable exception
-