GQLError

interface GQLError

Represents GraphQL errors that can be received. Implement this class to deserialize custom errors.

See also

Inheritors

Types

Link copied to clipboard
@Serializable
data class ErrorLocations(val line: Long, val column: Long)

Wrapper class for error locations

Properties

Link copied to clipboard
abstract val extensions: JsonObject?

Optional JsonObject holding the data on extensions that may be received

Link copied to clipboard

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

Link copied to clipboard
abstract val message: String

The error message

Link copied to clipboard
abstract val path: List<String>?

Optional Path where the error occurred. Is null if missing