Module evita.external.api.graphql
Class GraphQLExceptionHandler
java.lang.Object
io.evitadb.externalApi.http.ExternalApiExceptionHandler
io.evitadb.externalApi.graphql.io.GraphQLExceptionHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class GraphQLExceptionHandler
extends io.evitadb.externalApi.http.ExternalApiExceptionHandler
Handles exception that occurred in GraphQL API outside of actual GraphQL execution.
- Author:
- Lukáš Hornych, FG Forrest a.s. (c) 2022
-
Constructor Summary
ConstructorsConstructorDescriptionGraphQLExceptionHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, io.undertow.server.HttpHandler next) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidrenderError(io.evitadb.exception.EvitaError evitaError, io.undertow.server.HttpServerExchange exchange) Methods inherited from class io.evitadb.externalApi.http.ExternalApiExceptionHandler
handleRequest, setResponse
-
Constructor Details
-
GraphQLExceptionHandler
public GraphQLExceptionHandler(@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull io.undertow.server.HttpHandler next)
-
-
Method Details
-
getExternalApiCode
- Specified by:
getExternalApiCodein classio.evitadb.externalApi.http.ExternalApiExceptionHandler
-
renderError
protected void renderError(@Nonnull io.evitadb.exception.EvitaError evitaError, @Nonnull io.undertow.server.HttpServerExchange exchange) - Specified by:
renderErrorin classio.evitadb.externalApi.http.ExternalApiExceptionHandler
-