Interface GraphqlErrorHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(ServiceRequestContext ctx, graphql.ExecutionInput input, graphql.ExecutionResult result, @Nullable Throwable cause) static GraphqlErrorHandler
of()
Return the defaultGraphqlErrorHandler
.default GraphqlErrorHandler
orElse
(GraphqlErrorHandler other) Returns a composedGraphqlErrorHandler
that applies this first and the specified other later if this returnsnull
.
-
Method Details
-
of
Return the defaultGraphqlErrorHandler
. -
handle
@Nullable @Nullable HttpResponse handle(ServiceRequestContext ctx, graphql.ExecutionInput input, graphql.ExecutionResult result, @Nullable @Nullable Throwable cause) -
orElse
Returns a composedGraphqlErrorHandler
that applies this first and the specified other later if this returnsnull
.
-