kgraphql / com.apurebase.kgraphql / GraphQLError

GraphQLError

open class GraphQLError : Exception

Constructors

<init>

GraphQLError(message: String, node: ASTNode?)
GraphQLError(message: String, nodes: List<ASTNode>? = null, source: Source? = null, positions: List<Int>? = null, originalError: Throwable? = null)

Properties

locations

An array of { line, column } locations within the source GraphQL document that correspond to this error.

val locations: List<LocationSource>?

nodes

An array of GraphQL AST Nodes corresponding to this error.

val nodes: List<ASTNode>?

originalError

The original error thrown from a field resolver during execution.

val originalError: Throwable?

positions

An array of character offsets within the source GraphQL document which correspond to this error.

val positions: List<Int>?

source

The source GraphQL document for the first location of this error.

val source: Source?

Functions

prettyPrint

fun prettyPrint(): String

Inheritors

ExecutionException

class ExecutionException : GraphQLError

ValidationException

class ValidationException : GraphQLError