Uses of Interface
graphql.GraphQLError
Packages that use GraphQLError
Package
Description
-
Uses of GraphQLError in graphql
Classes in graphql that implement GraphQLErrorModifier and TypeClassDescriptionclass
This graphql error will be used if a runtime exception is encountered while a data fetcher is invokedprivate static class
class
A base class for graphql runtime exceptions that also implementGraphQLError
and can be used in a general sense direct or have specialisations made of it.class
class
class
class
Fields in graphql with type parameters of type GraphQLErrorModifier and TypeFieldDescriptionprivate List
<GraphQLError> ExecutionResultImpl.Builder.errors
private final List
<GraphQLError> ExecutionResultImpl.errors
Methods in graphql that return GraphQLErrorMethods in graphql that return types with arguments of type GraphQLErrorModifier and TypeMethodDescriptionExecutionResult.getErrors()
ExecutionResultImpl.getErrors()
ParseAndValidateResult.getErrors()
A list of all the errors (parse and validate) that have occurredMethods in graphql with parameters of type GraphQLErrorModifier and TypeMethodDescriptionExecutionResult.Builder.addError
(GraphQLError error) Adds the error to any existing the errors for this builderExecutionResultImpl.Builder.addError
(GraphQLError error) static boolean
GraphqlErrorHelper.equals
(GraphQLError dis, Object o) static int
GraphqlErrorHelper.hashCode
(GraphQLError dis) default Object
ErrorClassification.toSpecification
(GraphQLError error) This is called to create a representation of the error classification that can be put into the `extensions` map of the graphql error under the key 'classification' whentoSpecification()
is calledGraphqlErrorHelper.toSpecification
(GraphQLError error) Method parameters in graphql with type arguments of type GraphQLErrorModifier and TypeMethodDescriptionExecutionResult.Builder.addErrors
(List<GraphQLError> errors) Adds the error list to any existing the errors for this builderExecutionResultImpl.Builder.addErrors
(List<GraphQLError> errors) ExecutionResult.Builder.errors
(List<GraphQLError> errors) Sets error list as the errors for this builderExecutionResultImpl.Builder.errors
(List<GraphQLError> errors) private Object
ExecutionResultImpl.errorsToSpec
(List<GraphQLError> errors) Constructors in graphql with parameters of type GraphQLErrorConstructor parameters in graphql with type arguments of type GraphQLErrorModifierConstructorDescriptionprivate
ExecutionResultImpl
(boolean dataPresent, Object data, List<? extends GraphQLError> errors, Map<Object, Object> extensions) ExecutionResultImpl
(Object data, List<? extends GraphQLError> errors) ExecutionResultImpl
(Object data, List<? extends GraphQLError> errors, Map<Object, Object> extensions) ExecutionResultImpl
(List<? extends GraphQLError> errors) -
Uses of GraphQLError in graphql.execution
Classes in graphql.execution that implement GraphQLErrorModifier and TypeClassDescriptionclass
This Exception indicates that the current execution should be aborted.class
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
This is thrown if a query is attempting to perform an operation not defined in the GraphQL schemaclass
This is the base error that indicates that a non null field value was in fact null.class
This is thrown if a non nullable value is coerced to a null valueclass
The input map to One Of Input Types MUST only have 1 entry with a non null valueclass
The input map to One Of Input Types MUST only have 1 entryclass
This is thrown if multiple operations are defined in the query and the operation name is missing or there is no matching operation name contained in the GraphQL query.Fields in graphql.execution with type parameters of type GraphQLErrorModifier and TypeFieldDescriptionprivate final List
<GraphQLError> DataFetcherExceptionHandlerResult.Builder.errors
private final List
<GraphQLError> DataFetcherExceptionHandlerResult.errors
private final List
<GraphQLError> DataFetcherResult.Builder.errors
private final List
<GraphQLError> DataFetcherResult.errors
private final AtomicReference
<com.google.common.collect.ImmutableList<GraphQLError>> ExecutionContext.errors
(package private) com.google.common.collect.ImmutableList
<GraphQLError> ExecutionContextBuilder.errors
private com.google.common.collect.ImmutableList
<GraphQLError> FetchedValue.Builder.errors
private final com.google.common.collect.ImmutableList
<GraphQLError> FetchedValue.errors
private final List
<GraphQLError> AbortExecutionException.underlyingErrors
Methods in graphql.execution that return types with arguments of type GraphQLErrorModifier and TypeMethodDescriptionDataFetcherExceptionHandlerResult.getErrors()
DataFetcherResult.getErrors()
ExecutionContext.getErrors()
FetchedValue.getErrors()
AbortExecutionException.getUnderlyingErrors()
Methods in graphql.execution with parameters of type GraphQLErrorModifier and TypeMethodDescriptionvoid
ExecutionContext.addError
(GraphQLError error) This method will allow you to add errors into the running execution context, without a check for per field unique-nessvoid
ExecutionContext.addError
(GraphQLError error, ResultPath fieldPath) This method will only put one error per field path.DataFetcherExceptionHandlerResult.Builder.error
(GraphQLError error) DataFetcherResult.Builder.error
(GraphQLError error) DataFetcherExceptionHandlerResult.newResult
(GraphQLError error) Method parameters in graphql.execution with type arguments of type GraphQLErrorModifier and TypeMethodDescriptionvoid
ExecutionContext.addErrors
(List<GraphQLError> errors) This method will allow you to add errors into the running execution context, without a check for per field unique-nessDataFetcherExceptionHandlerResult.Builder.errors
(List<GraphQLError> errors) DataFetcherResult.Builder.errors
(List<GraphQLError> errors) FetchedValue.Builder.errors
(List<GraphQLError> errors) Constructor parameters in graphql.execution with type arguments of type GraphQLErrorModifierConstructorDescriptionAbortExecutionException
(Collection<GraphQLError> underlyingErrors) DataFetcherResult
(T data, List<GraphQLError> errors) Deprecated.private
DataFetcherResult
(T data, List<GraphQLError> errors, Object localContext, Map<Object, Object> extensions) (package private)
FetchedValue
(Object fetchedValue, Object rawFetchedValue, com.google.common.collect.ImmutableList<GraphQLError> errors, Object localContext) -
Uses of GraphQLError in graphql.execution.instrumentation.fieldvalidation
Classes in graphql.execution.instrumentation.fieldvalidation that implement GraphQLErrorFields in graphql.execution.instrumentation.fieldvalidation with type parameters of type GraphQLErrorModifier and TypeFieldDescriptionprivate final Map
<ResultPath, BiFunction<FieldAndArguments, FieldValidationEnvironment, Optional<GraphQLError>>> SimpleFieldValidation.rules
Methods in graphql.execution.instrumentation.fieldvalidation that return GraphQLErrorModifier and TypeMethodDescriptionThis helper method allows you to make error messages to be passed back out in case of validation failure.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.FieldValidationSupport.FieldValidationEnvironmentImpl.mkError
(String msg, FieldAndArguments fieldAndArguments) Methods in graphql.execution.instrumentation.fieldvalidation that return types with arguments of type GraphQLErrorModifier and TypeMethodDescriptionFieldValidation.validateFields
(FieldValidationEnvironment validationEnvironment) This is called to validate the fields and their argumentsSimpleFieldValidation.validateFields
(FieldValidationEnvironment validationEnvironment) (package private) static List
<GraphQLError> FieldValidationSupport.validateFieldsAndArguments
(FieldValidation fieldValidation, ExecutionContext executionContext) Method parameters in graphql.execution.instrumentation.fieldvalidation with type arguments of type GraphQLErrorModifier and TypeMethodDescriptionSimpleFieldValidation.addRule
(ResultPath fieldPath, BiFunction<FieldAndArguments, FieldValidationEnvironment, Optional<GraphQLError>> rule) Adds the rule against the field address path. -
Uses of GraphQLError in graphql.execution.preparsed
Fields in graphql.execution.preparsed with type parameters of type GraphQLErrorModifier and TypeFieldDescriptionprivate final List
<? extends GraphQLError> PreparsedDocumentEntry.errors
Methods in graphql.execution.preparsed that return types with arguments of type GraphQLErrorModifier and TypeMethodDescriptionList
<? extends GraphQLError> PreparsedDocumentEntry.getErrors()
Constructors in graphql.execution.preparsed with parameters of type GraphQLErrorConstructor parameters in graphql.execution.preparsed with type arguments of type GraphQLErrorModifierConstructorDescriptionPreparsedDocumentEntry
(Document document, List<? extends GraphQLError> errors) PreparsedDocumentEntry
(List<? extends GraphQLError> errors) -
Uses of GraphQLError in graphql.introspection
Classes in graphql.introspection that implement GraphQLErrorModifier and TypeClassDescriptionstatic class
class
-
Uses of GraphQLError in graphql.relay
Classes in graphql.relay that implement GraphQLError -
Uses of GraphQLError in graphql.schema
Classes in graphql.schema that implement GraphQLErrorModifier and TypeClassDescriptionclass
class
class
-
Uses of GraphQLError in graphql.schema.idl
Methods in graphql.schema.idl with type parameters of type GraphQLErrorModifier and TypeMethodDescription(package private) static <T,
E extends GraphQLError>
voidSchemaTypeChecker.checkNamedUniqueness
(List<GraphQLError> errors, List<T> listOfNamedThings, Function<T, String> namer, BiFunction<String, T, E> errorFunction) A simple function that takes a list of things, asks for their names and checks that the names are unique within that list.Methods in graphql.schema.idl that return GraphQLErrorModifier and TypeMethodDescriptionprivate GraphQLError
TypeDefinitionRegistry.handleReDefinition
(DirectiveDefinition oldEntry, DirectiveDefinition newEntry) private GraphQLError
TypeDefinitionRegistry.handleReDefinition
(TypeDefinition oldEntry, TypeDefinition newEntry) Methods in graphql.schema.idl that return types with arguments of type GraphQLErrorModifier and TypeMethodDescriptionTypeDefinitionRegistry.add
(SDLDefinition definition) Adds a definition to the registryTypeDefinitionRegistry.addAll
(Collection<SDLDefinition> definitions) Adds a a collections of definitions to the registryprivate Optional
<GraphQLError> TypeDefinitionRegistry.checkAddOperationDefs()
SchemaTypeChecker.checkTypeRegistry
(TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring) private <T extends TypeDefinition>
Optional<GraphQLError> private <T extends DirectiveDefinition>
Optional<GraphQLError> private <T extends TypeDefinition>
Optional<GraphQLError> TypeDefinitionRegistry.defineExt
(Map<String, List<T>> typeExtensions, T newEntry, Function<T, String> namerFunc) Method parameters in graphql.schema.idl with type arguments of type GraphQLErrorModifier and TypeMethodDescriptionprivate void
ArgValueOfAllowedTypeChecker.addValidationError
(List<GraphQLError> errors, String message, Object... args) void
SchemaTypeDirectivesChecker.assertExistAndIsInputType
(InputValueDefinition definition, List<GraphQLError> errors) private void
SchemaTypeDirectivesChecker.assertTypeName
(NamedNode node, List<GraphQLError> errors) private void
UnionTypesChecker.assertTypeName
(UnionTypeDefinition unionTypeDefinition, List<GraphQLError> errors) private void
ImplementingTypesChecker.checkAncestorImplementation
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, ImplementingTypeDefinition type, Map<InterfaceTypeDefinition, ImplementingTypeDefinition> implementedInterfaces) private void
ArgValueOfAllowedTypeChecker.checkArgInputObjectValueFieldMatchesAllowedDefinition
(List<GraphQLError> errors, ObjectField objectField, InputValueDefinition allowedValueDef) private void
ImplementingTypesChecker.checkArgumentConsistency
(String typeOfType, ImplementingTypeDefinition objectTypeDef, InterfaceTypeDefinition interfaceTypeDef, FieldDefinition objectFieldDef, FieldDefinition interfaceFieldDef, List<GraphQLError> errors) private void
ArgValueOfAllowedTypeChecker.checkArgValueMatchesAllowedEnum
(List<GraphQLError> errors, Value<?> instanceValue, EnumTypeDefinition allowedTypeDefinition) private void
ArgValueOfAllowedTypeChecker.checkArgValueMatchesAllowedInputType
(List<GraphQLError> errors, Value<?> instanceValue, InputObjectTypeDefinition allowedTypeDefinition) private void
ArgValueOfAllowedTypeChecker.checkArgValueMatchesAllowedListType
(List<GraphQLError> errors, Value<?> instanceValue, ListType allowedArgType) private void
ArgValueOfAllowedTypeChecker.checkArgValueMatchesAllowedNonNullType
(List<GraphQLError> errors, Value<?> instanceValue, NonNullType allowedArgType) private void
ArgValueOfAllowedTypeChecker.checkArgValueMatchesAllowedScalar
(List<GraphQLError> errors, Value<?> instanceValue, ScalarTypeDefinition allowedTypeDefinition) (package private) void
ArgValueOfAllowedTypeChecker.checkArgValueMatchesAllowedType
(List<GraphQLError> errors, Value<?> instanceValue, Type<?> allowedArgType) Recursively inspects an argument value given an allowed type.private void
ArgValueOfAllowedTypeChecker.checkArgValueMatchesAllowedTypeName
(List<GraphQLError> errors, Value<?> instanceValue, Type<?> allowedArgType) private void
SchemaTypeDirectivesChecker.checkDirectiveArguments
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Node element, String elementName, Directive directive, DirectiveDefinition directiveDefinition) private void
SchemaTypeChecker.checkDirectiveDefinitions
(TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors) private void
SchemaTypeDirectivesChecker.checkDirectives
(Introspection.DirectiveLocation expectedLocation, List<GraphQLError> errors, TypeDefinition<?> typeDef) private void
SchemaTypeDirectivesChecker.checkDirectives
(Introspection.DirectiveLocation expectedLocation, List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Node<?> element, String elementName, List<Directive> directives) private void
SchemaTypeExtensionsChecker.checkEnumTypeExtensions
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Map<String, DirectiveDefinition> directiveDefinitionMap) private void
SchemaTypeChecker.checkEnumValues
(List<GraphQLError> errors, EnumTypeDefinition enumType, List<EnumValueDefinition> enumValueDefinitions, Map<String, DirectiveDefinition> directiveDefinitionMap) private void
SchemaTypeChecker.checkFieldsAreSensible
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) private void
SchemaTypeDirectivesChecker.checkFieldsDirectives
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, List<FieldDefinition> fieldDefinitions) private void
SchemaTypeChecker.checkFieldTypesPresent
(TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors, TypeDefinition typeDefinition, List<FieldDefinition> fields) private void
SchemaTypeExtensionsChecker.checkForEnumValueRedefinition
(List<GraphQLError> errors, TypeDefinition typeDefinition, List<EnumValueDefinition> enumValueDefinitions, List<EnumValueDefinition> referenceEnumValueDefinitions) private void
SchemaTypeExtensionsChecker.checkForFieldRedefinition
(List<GraphQLError> errors, TypeDefinition typeDefinition, List<FieldDefinition> fieldDefinitions, List<FieldDefinition> referenceFieldDefinitions) private void
SchemaTypeExtensionsChecker.checkForInputValueRedefinition
(List<GraphQLError> errors, InputObjectTypeExtensionDefinition typeDefinition, List<InputValueDefinition> inputValueDefinitions, List<InputValueDefinition> referenceInputValues) private void
SchemaTypeChecker.checkForMissingTypes
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) private void
ImplementingTypesChecker.checkImplementingType
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, ImplementingTypeDefinition type) (package private) void
ImplementingTypesChecker.checkImplementingTypes
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) private void
SchemaTypeExtensionsChecker.checkInputObjectTypeExtensions
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Map<String, DirectiveDefinition> directiveDefinitionMap) private void
SchemaTypeChecker.checkInputValues
(List<GraphQLError> errors, InputObjectTypeDefinition inputType, List<InputValueDefinition> inputValueDefinitions, Introspection.DirectiveLocation directiveLocation, Map<String, DirectiveDefinition> directiveDefinitionMap) private void
SchemaTypeChecker.checkInterfaceFields
(List<GraphQLError> errors, InterfaceTypeDefinition interfaceType, List<FieldDefinition> fieldDefinitions, Map<String, DirectiveDefinition> directiveDefinitionMap) private void
ImplementingTypesChecker.checkInterfaceIsImplemented
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, ImplementingTypeDefinition type, Map<InterfaceTypeDefinition, ImplementingTypeDefinition> implementedInterfaces) ImplementingTypesChecker.checkInterfacesNotImplementedMoreThanOnce
(List<GraphQLError> errors, ImplementingTypeDefinition type, TypeDefinitionRegistry typeRegistry) SchemaTypeChecker.checkInterfaceTypeExists
(TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors, TypeDefinition typeDefinition) private void
SchemaTypeExtensionsChecker.checkInterfaceTypeExtensions
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Map<String, DirectiveDefinition> directiveDefinitionMap) private Map
<String, OperationTypeDefinition> TypeDefinitionRegistry.checkMergeSchemaDefs
(TypeDefinitionRegistry toBeMergedTypeRegistry, List<GraphQLError> errors) (package private) static <T,
E extends GraphQLError>
voidSchemaTypeChecker.checkNamedUniqueness
(List<GraphQLError> errors, List<T> listOfNamedThings, Function<T, String> namer, BiFunction<String, T, E> errorFunction) A simple function that takes a list of things, asks for their names and checks that the names are unique within that list.private void
SchemaTypeExtensionsChecker.checkObjectTypeExtensions
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Map<String, DirectiveDefinition> directiveDefinitionMap) private void
SchemaTypeChecker.checkObjTypeFields
(List<GraphQLError> errors, ObjectTypeDefinition typeDefinition, List<FieldDefinition> fieldDefinitions, Map<String, DirectiveDefinition> directiveDefinitionMap) private static Consumer
<OperationTypeDefinition> SchemaExtensionsChecker.checkOperationTypesAreObjects
(TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors) private static Consumer
<OperationTypeDefinition> SchemaExtensionsChecker.checkOperationTypesExist
(TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors) private void
SchemaTypeChecker.checkScalarImplementationsArePresent
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring) private void
SchemaTypeExtensionsChecker.checkScalarTypeExtensions
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Map<String, DirectiveDefinition> directiveDefinitionMap) (package private) static List
<OperationTypeDefinition> SchemaExtensionsChecker.checkSchemaInvariants
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) (package private) void
SchemaTypeDirectivesChecker.checkTypeDirectives
(List<GraphQLError> errors) SchemaTypeChecker.checkTypeExists
(TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors, String typeOfType, Node element, String elementName) SchemaTypeChecker.checkTypeExists
(String typeOfType, TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors, TypeDefinition typeDefinition) private void
SchemaTypeExtensionsChecker.checkTypeExtensionHasCorrespondingType
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, String name, List<? extends TypeDefinition> extTypeList, Class<? extends TypeDefinition> targetClass) (package private) void
SchemaTypeExtensionsChecker.checkTypeExtensions
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) private void
SchemaTypeChecker.checkTypeResolversArePresent
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, RuntimeWiring wiring) private void
UnionTypesChecker.checkUnionType
(TypeDefinitionRegistry typeRegistry, UnionTypeDefinition unionTypeDefinition, List<GraphQLError> errors) (package private) void
UnionTypesChecker.checkUnionType
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry) private void
SchemaTypeExtensionsChecker.checkUnionTypeExtensions
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry, Map<String, DirectiveDefinition> directiveDefinitionMap) private void
SchemaTypeDirectivesChecker.commonCheck
(Collection<DirectiveDefinition> directiveDefinitions, List<GraphQLError> errors) (package private) static void
SchemaExtensionsChecker.defineOperationDefs
(List<GraphQLError> errors, Collection<OperationTypeDefinition> newOperationDefs, Map<String, OperationTypeDefinition> existingOperationDefs) (package private) static Map
<String, OperationTypeDefinition> SchemaExtensionsChecker.gatherOperationDefs
(List<GraphQLError> errors, SchemaDefinition schema, List<SchemaExtensionDefinition> schemaExtensionDefinitions) SchemaExtensionsChecker.gatherSchemaDirectives
(TypeDefinitionRegistry typeRegistry, List<GraphQLError> errors) -
Uses of GraphQLError in graphql.schema.idl.errors
Classes in graphql.schema.idl.errors that implement GraphQLErrorModifier and TypeClassDescription(package private) class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Fields in graphql.schema.idl.errors with type parameters of type GraphQLErrorMethods in graphql.schema.idl.errors that return types with arguments of type GraphQLErrorConstructor parameters in graphql.schema.idl.errors with type arguments of type GraphQLError -
Uses of GraphQLError in graphql.validation
Classes in graphql.validation that implement GraphQLErrorMethods in graphql.validation that return types with arguments of type GraphQLErrorModifier and TypeMethodDescriptionprivate Optional
<GraphQLError> ValidationUtil.parseLiteral
(Value<?> value, Coercing<?, ?> coercing, GraphQLContext graphQLContext, Locale locale) private Optional
<GraphQLError> ValidationUtil.parseLiteralEnum
(Value<?> value, GraphQLEnumType graphQLEnumType, GraphQLContext graphQLContext, Locale locale) Methods in graphql.validation with parameters of type GraphQLErrorModifier and TypeMethodDescriptionprotected void
ArgumentValidationUtil.handleEnumError
(Value<?> value, GraphQLEnumType type, GraphQLError invalid) protected void
ValidationUtil.handleEnumError
(Value<?> value, GraphQLEnumType type, GraphQLError invalid) protected void
ArgumentValidationUtil.handleScalarError
(Value<?> value, GraphQLScalarType type, GraphQLError invalid) protected void
ValidationUtil.handleScalarError
(Value<?> value, GraphQLScalarType type, GraphQLError invalid)
DataFetcherResult.newResult()
builder instead