graphql.kickstart.spring.error.GraphQLErrorFactory Maven / Gradle / Ivy
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);
}