FieldError

open class FieldError(val message: String, val extensions: Map<String, Any>? = null, cause: Throwable? = null) : Exception(source)

An exception class that represents a GraphQL field error. Use this if you want to customize the error entry in the GraphQL response.

Parameters

message

The message field for the error in the GraphQL response

extensions

Fields to include in a "extensions" field for the error in the GraphQL response

TODO(https://app.asana.com/1/150975571430/task/1210755595661886?focus=true): update the engine to extract extensions into GraphQLError

Constructors

Link copied to clipboard
constructor(message: String, extensions: Map<String, Any>? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
val extensions: Map<String, Any>? = null
Link copied to clipboard
open override val message: String