graphql.schema.CoercingParseValueException Maven / Gradle / Ivy
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 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 = Collections.singletonList(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