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

graphql.schema.CoercingParseLiteralException Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.schema;

import java.util.Collections;
import java.util.List;

import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.GraphQLException;
import graphql.PublicApi;
import graphql.language.SourceLocation;

@PublicApi
public class CoercingParseLiteralException extends GraphQLException implements GraphQLError {
    private List sourceLocations;

    public CoercingParseLiteralException() {
    }

    public CoercingParseLiteralException(String message) {
        super(message);
    }

    public CoercingParseLiteralException(String message, Throwable cause) {
        super(message, cause);
    }

    public CoercingParseLiteralException(String message, Throwable cause, SourceLocation sourceLocation) {
        super(message, cause);
        this.sourceLocations = Collections.singletonList(sourceLocation);
    }

    public CoercingParseLiteralException(Throwable cause) {
        super(cause);
    }

    @Override
    public List getLocations() {
        return sourceLocations;
    }

    @Override
    public ErrorType getErrorType() {
        return ErrorType.ValidationError;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy