public class GQLErrorProcessor extends Object implements IGQLErrorProcessor
IGQLErrorProcessor. This class is intended
to be overridden to provide custom error handling.| Constructor and Description |
|---|
GQLErrorProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected GQLExecutionErrorDetails |
createError()
Override to provide custom
GQLExecutionErrorDetails extension |
GQLExecutionErrorDetails |
handleError(List<graphql.GraphQLError> errors)
Create
GQLExecutionErrorDetails from given details list |
GQLExecutionErrorDetails |
handleError(Throwable exception)
Create
GQLExecutionErrorDetails after catching given exception |
public GQLExecutionErrorDetails handleError(List<graphql.GraphQLError> errors)
IGQLErrorProcessorGQLExecutionErrorDetails from given details listhandleError in interface IGQLErrorProcessorerrors - the error details to populate error fromGQLExecutionErrorDetailspublic GQLExecutionErrorDetails handleError(Throwable exception)
IGQLErrorProcessorGQLExecutionErrorDetails after catching given exceptionhandleError in interface IGQLErrorProcessorexception - the exception to populate error fromGQLExecutionErrorDetailsprotected GQLExecutionErrorDetails createError()
GQLExecutionErrorDetails extensionGQLExecutionErrorDetailsCopyright © 2019. All rights reserved.