@PublicApi public class ValidationError extends java.lang.Object implements GraphQLError
Modifier and Type | Class and Description |
---|---|
static class |
ValidationError.Builder |
Constructor and Description |
---|
ValidationError(ValidationErrorType validationErrorType) |
ValidationError(ValidationErrorType validationErrorType,
java.util.List<SourceLocation> sourceLocations,
java.lang.String description) |
ValidationError(ValidationErrorType validationErrorType,
java.util.List<SourceLocation> sourceLocations,
java.lang.String description,
java.util.List<java.lang.String> queryPath) |
ValidationError(ValidationErrorType validationErrorType,
SourceLocation sourceLocation,
java.lang.String description) |
ValidationError(ValidationErrorType validationErrorType,
SourceLocation sourceLocation,
java.lang.String description,
java.util.List<java.lang.String> queryPath) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription() |
ErrorType |
getErrorType() |
java.util.Map<java.lang.String,java.lang.Object> |
getExtensions() |
java.util.List<SourceLocation> |
getLocations() |
java.lang.String |
getMessage() |
java.util.List<java.lang.String> |
getQueryPath() |
ValidationErrorType |
getValidationErrorType() |
int |
hashCode() |
static ValidationError.Builder |
newValidationError() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPath, toSpecification
public ValidationError(ValidationErrorType validationErrorType)
public ValidationError(ValidationErrorType validationErrorType, SourceLocation sourceLocation, java.lang.String description)
public ValidationError(ValidationErrorType validationErrorType, SourceLocation sourceLocation, java.lang.String description, java.util.List<java.lang.String> queryPath)
public ValidationError(ValidationErrorType validationErrorType, java.util.List<SourceLocation> sourceLocations, java.lang.String description)
public ValidationError(ValidationErrorType validationErrorType, java.util.List<SourceLocation> sourceLocations, java.lang.String description, java.util.List<java.lang.String> queryPath)
public ValidationErrorType getValidationErrorType()
public java.lang.String getMessage()
getMessage
in interface GraphQLError
public java.lang.String getDescription()
public java.util.List<SourceLocation> getLocations()
getLocations
in interface GraphQLError
SourceLocation
describes the beginning of an associated syntax elementpublic ErrorType getErrorType()
getErrorType
in interface GraphQLError
public java.util.List<java.lang.String> getQueryPath()
public java.util.Map<java.lang.String,java.lang.Object> getExtensions()
getExtensions
in interface GraphQLError
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static ValidationError.Builder newValidationError()