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

graphql.schema.idl.errors.SchemaProblem Maven / Gradle / Ivy

The newest version!
package graphql.schema.idl.errors;

import graphql.GraphQLError;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * A number of problems can occur when using the schema tools like {@link graphql.schema.idl.SchemaCompiler}
 * or {@link graphql.schema.idl.SchemaGenerator} classes and they are reported via this
 * exception as a list of {@link GraphQLError}s
 */
public class SchemaProblem extends RuntimeException {

    private final List errors;

    public SchemaProblem(List errors) {
        this.errors = new ArrayList<>(errors);
    }

    public List getErrors() {
        return errors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy