Class ValidationError
java.lang.Object
graphql.validation.ValidationError
- All Implemented Interfaces:
GraphQLError, Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final List<SourceLocation> private final ValidationErrorClassification -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateValidationError(ValidationError.Builder builder) ValidationError(ValidationErrorClassification validationErrorType) Deprecated.ValidationError(ValidationErrorClassification validationErrorType, SourceLocation sourceLocation, String description) Deprecated.ValidationError(ValidationErrorType validationErrorType, SourceLocation sourceLocation, String description, List<String> queryPath) Deprecated.ValidationError(ValidationErrorType validationErrorType, List<SourceLocation> sourceLocations, String description) Deprecated.ValidationError(ValidationErrorType validationErrorType, List<SourceLocation> sourceLocations, String description, List<String> queryPath) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static ValidationError.BuildertoString()Methods inherited from interface GraphQLError
getPath, toSpecification
-
Field Details
-
locations
-
description
-
validationErrorType
-
queryPath
-
extensions
-
-
Constructor Details
-
ValidationError
Deprecated. -
ValidationError
@Deprecated public ValidationError(ValidationErrorClassification validationErrorType, SourceLocation sourceLocation, String description) Deprecated. -
ValidationError
@Deprecated public ValidationError(ValidationErrorType validationErrorType, SourceLocation sourceLocation, String description, List<String> queryPath) Deprecated. -
ValidationError
@Deprecated public ValidationError(ValidationErrorType validationErrorType, List<SourceLocation> sourceLocations, String description) Deprecated. -
ValidationError
@Deprecated public ValidationError(ValidationErrorType validationErrorType, List<SourceLocation> sourceLocations, String description, List<String> queryPath) Deprecated. -
ValidationError
-
-
Method Details
-
getValidationErrorType
-
getMessage
- Specified by:
getMessagein interfaceGraphQLError- Returns:
- a description of the error intended for the developer as a guide to understand and correct the error
-
getDescription
-
getLocations
- Specified by:
getLocationsin interfaceGraphQLError- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocationdescribes the beginning of an associated syntax element
-
getErrorType
- Specified by:
getErrorTypein interfaceGraphQLError- Returns:
- an object classifying this error
-
getQueryPath
-
getExtensions
- Specified by:
getExtensionsin interfaceGraphQLError- Returns:
- a map of error extensions or null if there are none
-
toString
-
equals
-
hashCode
-
newValidationError
-