All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.spring.error.GraphQLErrorFactory Maven / Gradle / Ivy

There is a newer version: 15.1.0
Show newest version
package graphql.kickstart.spring.error;

import graphql.GraphQLError;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Optional;

interface GraphQLErrorFactory {

  static GraphQLErrorFactory withReflection(Object object, Method method) {
    return new ReflectiveGraphQLErrorFactory(object, method);
  }

  Optional> mostConcrete(Throwable t);

  Collection create(Throwable t, ErrorContext errorContext);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy