Package graphql.validation
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 String
private final List
<SourceLocation> private final ValidationErrorClassification
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ValidationError
(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 TypeMethodDescriptionboolean
int
hashCode()
static ValidationError.Builder
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface graphql.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:
getMessage
in interfaceGraphQLError
- Returns:
- a description of the error intended for the developer as a guide to understand and correct the error
-
getDescription
-
getLocations
- Specified by:
getLocations
in interfaceGraphQLError
- Returns:
- the location(s) within the GraphQL document at which the error occurred. Each
SourceLocation
describes the beginning of an associated syntax element
-
getErrorType
- Specified by:
getErrorType
in interfaceGraphQLError
- Returns:
- an object classifying this error
-
getQueryPath
-
getExtensions
- Specified by:
getExtensions
in interfaceGraphQLError
- Returns:
- a map of error extensions or null if there are none
-
toString
-
equals
-
hashCode
public int hashCode() -
newValidationError
-