DefaultGQLError

@Serializable
class DefaultGQLError(val message: String, val locations: List<GQLError.ErrorLocations>? = null, val path: List<String>? = null, val extensions: JsonObject? = null) : GQLError

Default implementation of GQLError.

Use when errors conform to the GraphQL spec.

If other fields are specified consider implementing GQLError.

See also

Constructors

Link copied to clipboard
constructor(message: String, locations: List<GQLError.ErrorLocations>? = null, path: List<String>? = null, extensions: JsonObject? = null)

Properties

Link copied to clipboard
open override val extensions: JsonObject? = null

Optional JsonObject holding the data on extensions that may be received

Link copied to clipboard
open override val locations: List<GQLError.ErrorLocations>? = null

Optional field representing the locations of the error in the query. Is null if missing

Link copied to clipboard
open override val message: String

The error message

Link copied to clipboard
open override val path: List<String>? = null

Optional Path where the error occurred. Is null if missing