Class GraphQLExceptionHandler

java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<com.linecorp.armeria.server.Service<T_I,T_O>>
com.linecorp.armeria.server.DecoratingService<I,O,I,O>
com.linecorp.armeria.server.SimpleDecoratingService<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>
com.linecorp.armeria.server.SimpleDecoratingHttpService
io.evitadb.externalApi.http.ExternalApiExceptionHandler
io.evitadb.externalApi.http.JsonApiExceptionHandler
io.evitadb.externalApi.graphql.io.GraphQLExceptionHandler
All Implemented Interfaces:
com.linecorp.armeria.common.util.Unwrappable, com.linecorp.armeria.server.HttpService, com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,com.linecorp.armeria.common.HttpResponse>

public class GraphQLExceptionHandler extends io.evitadb.externalApi.http.JsonApiExceptionHandler
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, com.linecorp.armeria.server.HttpService next)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     

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

    renderError

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

    buildResponse, serve

    Methods inherited from class com.linecorp.armeria.server.SimpleDecoratingHttpService

    exchangeType, options

    Methods inherited from class com.linecorp.armeria.server.DecoratingService

    serviceAdded, shouldCachePath

    Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable

    as, toString, unwrap, unwrapAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.linecorp.armeria.server.HttpService

    decorate, decorate

    Methods inherited from interface com.linecorp.armeria.server.Service

    as, serviceAdded, shouldCachePath, unwrap

    Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable

    equalsIgnoreWrapper, unwrapAll
  • Constructor Details

    • GraphQLExceptionHandler

      public GraphQLExceptionHandler(@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull com.linecorp.armeria.server.HttpService next)
  • Method Details

    • getExternalApiCode

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