graphql.schema.CoercingParseValueException Maven / Gradle / Ivy
package graphql.schema;
import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.GraphQLException;
import graphql.language.SourceLocation;
import java.util.Arrays;
import java.util.List;
public class CoercingParseValueException extends GraphQLException implements GraphQLError {
private List sourceLocations;
public CoercingParseValueException() {
}
public CoercingParseValueException(String message) {
super(message);
}
public CoercingParseValueException(String message, Throwable cause) {
super(message, cause);
}
public CoercingParseValueException(String message, Throwable cause, SourceLocation sourceLocation) {
super(message, cause);
this.sourceLocations = Arrays.asList(sourceLocation);
}
public CoercingParseValueException(Throwable cause) {
super(cause);
}
@Override
public List getLocations() {
return sourceLocations;
}
@Override
public ErrorType getErrorType() {
return ErrorType.ValidationError;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy