Package | Description |
---|---|
graphql | |
graphql.execution | |
graphql.execution.defer | |
graphql.execution.instrumentation.fieldvalidation | |
graphql.execution.nextgen |
WARNING: All code in this package is a work in progress for a new execution engine.
|
graphql.execution.preparsed | |
graphql.relay | |
graphql.schema | |
graphql.schema.idl | |
graphql.schema.idl.errors | |
graphql.validation |
Modifier and Type | Class and Description |
---|---|
class |
ExceptionWhileDataFetching
This graphql error will be used if a runtime exception is encountered while a data fetcher is invoked
|
class |
InvalidSyntaxError |
class |
SerializationError |
class |
TypeMismatchError |
class |
UnresolvedTypeError |
Modifier and Type | Method and Description |
---|---|
GraphQLError |
GraphqlErrorBuilder.build() |
Modifier and Type | Method and Description |
---|---|
List<GraphQLError> |
ExecutionResultImpl.getErrors() |
List<GraphQLError> |
ExecutionResult.getErrors() |
Modifier and Type | Method and Description |
---|---|
ExecutionResultImpl.Builder |
ExecutionResultImpl.Builder.addError(GraphQLError error) |
static boolean |
GraphqlErrorHelper.equals(GraphQLError dis,
Object o) |
static int |
GraphqlErrorHelper.hashCode(GraphQLError dis) |
static Map<String,Object> |
GraphqlErrorHelper.toSpecification(GraphQLError error) |
Modifier and Type | Method and Description |
---|---|
ExecutionResultImpl.Builder |
ExecutionResultImpl.Builder.addErrors(List<GraphQLError> errors) |
ExecutionResultImpl.Builder |
ExecutionResultImpl.Builder.errors(List<GraphQLError> errors) |
Constructor and Description |
---|
ExecutionResultImpl(GraphQLError error) |
Constructor and Description |
---|
ExecutionResultImpl(List<? extends GraphQLError> errors) |
ExecutionResultImpl(Object data,
List<? extends GraphQLError> errors) |
ExecutionResultImpl(Object data,
List<? extends GraphQLError> errors,
Map<Object,Object> extensions) |
Modifier and Type | Class and Description |
---|---|
class |
AbortExecutionException
This Exception indicates that the current execution should be aborted.
|
class |
AbsoluteGraphQLError
A
GraphQLError that has been changed from a DataFetcher relative error to an absolute one. |
class |
InputMapDefinesTooManyFieldsException
https://facebook.github.io/graphql/#sec-Input-Objects
- This unordered map should not contain any entries with names not defined by a field of this input object type, otherwise an error should be thrown.
|
class |
MissingRootTypeException
This is thrown if a query is attempting to perform an operation not defined in the GraphQL schema
|
class |
NonNullableFieldWasNullError
This is the base error that indicates that a non null field value was in fact null.
|
class |
NonNullableValueCoercedAsNullException
This is thrown if a non nullable value is coerced to a null value
|
Modifier and Type | Method and Description |
---|---|
List<GraphQLError> |
FetchedValue.getErrors() |
List<GraphQLError> |
ExecutionContext.getErrors() |
List<GraphQLError> |
DataFetcherResult.getErrors() |
List<GraphQLError> |
DataFetcherExceptionHandlerResult.getErrors() |
List<GraphQLError> |
AbortExecutionException.getUnderlyingErrors() |
Modifier and Type | Method and Description |
---|---|
void |
ExecutionContext.addError(GraphQLError error)
This method will allow you to add errors into the running execution context, without a check
for per field unique-ness
|
void |
ExecutionContext.addError(GraphQLError error,
ExecutionPath fieldPath)
This method will only put one error per field path.
|
DataFetcherResult.Builder<T> |
DataFetcherResult.Builder.error(GraphQLError error) |
DataFetcherExceptionHandlerResult.Builder |
DataFetcherExceptionHandlerResult.Builder.error(GraphQLError error) |
static DataFetcherExceptionHandlerResult.Builder |
DataFetcherExceptionHandlerResult.newResult(GraphQLError error) |
Modifier and Type | Method and Description |
---|---|
FetchedValue.Builder |
FetchedValue.Builder.errors(List<GraphQLError> errors) |
DataFetcherResult.Builder<T> |
DataFetcherResult.Builder.errors(List<GraphQLError> errors) |
DataFetcherExceptionHandlerResult.Builder |
DataFetcherExceptionHandlerResult.Builder.errors(List<GraphQLError> errors) |
Constructor and Description |
---|
AbsoluteGraphQLError(ExecutionStrategyParameters executionStrategyParameters,
GraphQLError relativeError) |
AbsoluteGraphQLError(MergedField sameField,
ExecutionPath executionPath,
GraphQLError relativeError) |
Constructor and Description |
---|
AbortExecutionException(Collection<GraphQLError> underlyingErrors) |
DataFetcherResult(T data,
List<GraphQLError> errors)
Deprecated.
use the
DataFetcherResult.newResult() builder instead |
Modifier and Type | Method and Description |
---|---|
List<GraphQLError> |
DeferredErrorSupport.getErrors() |
Modifier and Type | Method and Description |
---|---|
void |
DeferredErrorSupport.onError(GraphQLError gError) |
Modifier and Type | Method and Description |
---|---|
GraphQLError |
FieldValidationEnvironment.mkError(String msg)
This helper method allows you to make error messages to be passed back out in case of validation failure.
|
GraphQLError |
FieldValidationEnvironment.mkError(String msg,
FieldAndArguments fieldAndArguments)
This helper method allows you to make error messages to be passed back out in case of validation failure.
|
Modifier and Type | Method and Description |
---|---|
List<GraphQLError> |
SimpleFieldValidation.validateFields(FieldValidationEnvironment validationEnvironment) |
List<GraphQLError> |
FieldValidation.validateFields(FieldValidationEnvironment validationEnvironment)
This is called to validate the fields and their arguments
|
Modifier and Type | Method and Description |
---|---|
SimpleFieldValidation |
SimpleFieldValidation.addRule(ExecutionPath fieldPath,
BiFunction<FieldAndArguments,FieldValidationEnvironment,Optional<GraphQLError>> rule)
Adds the rule against the field address path.
|
Modifier and Type | Method and Description |
---|---|
List<GraphQLError> |
FetchedValueAnalysis.getErrors() |
Modifier and Type | Method and Description |
---|---|
FetchedValueAnalysis.Builder |
FetchedValueAnalysis.Builder.error(GraphQLError error) |
Modifier and Type | Method and Description |
---|---|
FetchedValueAnalysis.Builder |
FetchedValueAnalysis.Builder.errors(List<GraphQLError> errors) |
Modifier and Type | Method and Description |
---|---|
List<? extends GraphQLError> |
PreparsedDocumentEntry.getErrors() |
Constructor and Description |
---|
PreparsedDocumentEntry(GraphQLError error) |
Constructor and Description |
---|
PreparsedDocumentEntry(List<? extends GraphQLError> errors) |
Modifier and Type | Class and Description |
---|---|
class |
InvalidCursorException |
class |
InvalidPageSizeException |
Modifier and Type | Class and Description |
---|---|
class |
CoercingParseLiteralException |
class |
CoercingParseValueException |
Modifier and Type | Method and Description |
---|---|
Optional<GraphQLError> |
TypeDefinitionRegistry.add(SDLDefinition definition)
Adds a definition to the registry
|
Optional<GraphQLError> |
TypeDefinitionRegistry.addAll(Collection<SDLDefinition> definitions)
Adds a a collections of definitions to the registry
|
List<GraphQLError> |
SchemaTypeChecker.checkTypeRegistry(TypeDefinitionRegistry typeRegistry,
RuntimeWiring wiring,
boolean enforceSchemaDirectives) |
Modifier and Type | Method and Description |
---|---|
List<GraphQLError> |
SchemaProblem.getErrors() |
Constructor and Description |
---|
SchemaProblem(List<GraphQLError> errors) |
Modifier and Type | Class and Description |
---|---|
class |
ValidationError |
Copyright © 2019. All rights reserved.