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

    Constructors
    Constructor
    Description
    GraphQLExceptionHandler(com.fasterxml.jackson.databind.ObjectMapper objectMapper, io.undertow.server.HttpHandler next)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    protected void
    renderError(io.evitadb.exception.EvitaError evitaError, io.undertow.server.HttpServerExchange exchange)
     

    Methods inherited from class io.evitadb.externalApi.http.ExternalApiExceptionHandler

    handleRequest, setResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GraphQLExceptionHandler

      public GraphQLExceptionHandler(@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull io.undertow.server.HttpHandler next)
  • Method Details

    • getExternalApiCode

      @Nonnull protected String getExternalApiCode()
      Specified by:
      getExternalApiCode in class io.evitadb.externalApi.http.ExternalApiExceptionHandler
    • renderError

      protected void renderError(@Nonnull io.evitadb.exception.EvitaError evitaError, @Nonnull io.undertow.server.HttpServerExchange exchange)
      Specified by:
      renderError in class io.evitadb.externalApi.http.ExternalApiExceptionHandler