@groovy.transform.CompileStatic class DefaultGraphQLErrorsResponseHandler
The default way to respond with validation errors in GraphQL. Will look for the locale in the environment context to properly format error messages. Defaults to java.util.Locale#getDefault(). errors { field message }
Modifiers | Name | Description |
---|---|---|
protected Builder |
codeRegistry |
|
protected java.lang.String |
description |
|
protected DataFetcher |
errorsFetcher |
|
protected java.lang.String |
fieldDescription |
|
protected DataFetcher |
fieldFetcher |
|
protected java.lang.String |
fieldName |
|
protected DataFetcher |
messageFetcher |
|
protected MessageSource |
messageSource |
|
protected java.lang.String |
name |
Constructor and description |
---|
DefaultGraphQLErrorsResponseHandler
(MessageSource messageSource, Builder codeRegistry) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected GraphQLObjectType |
buildDefinition(GraphQLTypeManager typeManager) |
|
GraphQLFieldDefinition |
getFieldDefinition(GraphQLTypeManager typeManager, java.lang.String parentType) |
|
protected java.util.List<GraphQLFieldDefinition> |
getFieldDefinitions(GraphQLTypeManager typeManager) |
|
protected java.util.Locale |
getLocale(DataFetchingEnvironment environment) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |