public static interface GraphQLError.Builder<B extends GraphQLError.Builder<B>>
GraphQLErrors| Modifier and Type | Method and Description |
|---|---|
GraphQLError |
build() |
B |
errorType(ErrorClassification errorType)
Sets the
ErrorClassification of the message |
B |
extensions(@Nullable java.util.Map<java.lang.String,java.lang.Object> extensions)
Sets the extensions of the message
|
B |
location(@Nullable SourceLocation location)
This adds a location to the error
|
B |
locations(@Nullable java.util.List<SourceLocation> locations)
This adds locations to the error
|
B |
message(java.lang.String message,
java.lang.Object... formatArgs)
Sets the message of the error using
String.format(String, Object...) with the arguments |
B |
path(@Nullable java.util.List<java.lang.Object> path)
Sets the path of the message
|
B |
path(@Nullable ResultPath path)
Sets the path of the message
|
B message(java.lang.String message, java.lang.Object... formatArgs)
String.format(String, Object...) with the argumentsmessage - the messageformatArgs - the arguments to useB locations(@Nullable @Nullable java.util.List<SourceLocation> locations)
locations - the locations to addB location(@Nullable @Nullable SourceLocation location)
location - the locations to addB path(@Nullable @Nullable ResultPath path)
path - can be nullB path(@Nullable @Nullable java.util.List<java.lang.Object> path)
path - can be nullB errorType(ErrorClassification errorType)
ErrorClassification of the messageerrorType - the error classification to useB extensions(@Nullable @Nullable java.util.Map<java.lang.String,java.lang.Object> extensions)
extensions - the extensions to useGraphQLError build()