public class ProcessingMessage<TypeT extends graphql.ErrorClassification> extends Object implements graphql.GraphQLError
Note that we also reuse this for info/warning logs: they're not errors per se, but since they share a similar structure it's convenient to factor the code.
| Modifier and Type | Method and Description |
|---|---|
static ProcessingMessage<ProcessingErrorType> |
error(graphql.language.SourceLocation location,
ProcessingErrorType type,
String format,
Object... arguments) |
TypeT |
getErrorType() |
List<graphql.language.SourceLocation> |
getLocations() |
String |
getMessage() |
static ProcessingMessage<ProcessingLogType> |
log(graphql.language.SourceLocation location,
ProcessingLogType type,
String format,
Object... arguments) |
String |
toString() |
@FormatMethod public static ProcessingMessage<ProcessingLogType> log(graphql.language.SourceLocation location, ProcessingLogType type, @FormatString String format, Object... arguments)
@FormatMethod public static ProcessingMessage<ProcessingErrorType> error(graphql.language.SourceLocation location, ProcessingErrorType type, @FormatString String format, Object... arguments)
public String getMessage()
getMessage in interface graphql.GraphQLErrorpublic List<graphql.language.SourceLocation> getLocations()
getLocations in interface graphql.GraphQLErrorpublic TypeT getErrorType()
getErrorType in interface graphql.GraphQLErrorCopyright © 2023. All rights reserved.