Package graphql.validation
Class ValidationError.Builder
- java.lang.Object
-
- graphql.validation.ValidationError.Builder
-
- Enclosing class:
- ValidationError
public static class ValidationError.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationError
build()
ValidationError.Builder
description(java.lang.String description)
ValidationError.Builder
extensions(java.util.Map<java.lang.String,java.lang.Object> extensions)
ValidationError.Builder
queryPath(java.util.List<java.lang.String> queryPath)
ValidationError.Builder
sourceLocation(SourceLocation sourceLocation)
ValidationError.Builder
sourceLocations(java.util.List<SourceLocation> sourceLocations)
ValidationError.Builder
validationErrorType(ValidationErrorClassification validationErrorType)
-
-
-
Method Detail
-
validationErrorType
public ValidationError.Builder validationErrorType(ValidationErrorClassification validationErrorType)
-
description
public ValidationError.Builder description(java.lang.String description)
-
queryPath
public ValidationError.Builder queryPath(java.util.List<java.lang.String> queryPath)
-
sourceLocation
public ValidationError.Builder sourceLocation(SourceLocation sourceLocation)
-
sourceLocations
public ValidationError.Builder sourceLocations(java.util.List<SourceLocation> sourceLocations)
-
extensions
public ValidationError.Builder extensions(java.util.Map<java.lang.String,java.lang.Object> extensions)
-
build
public ValidationError build()
-
-