ErrorReporter
Interface for reporting errors that occur during GraphQL resolver execution.
Types
Link copied to clipboard
data class Metadata @JvmOverloads constructor(val fieldName: String? = null, val parentType: String? = null, val operationName: String? = null, val isFrameworkError: Boolean? = null, val resolvers: List<String>? = null, val executionPath: List<Any>? = null, val sourceLocation: SourceLocation? = null, val requestContext: Any? = null, val componentName: String? = null, val isSuboperation: Boolean = false)
Metadata about a resolver error including execution context.
Functions
Link copied to clipboard
abstract fun reportResolverError(exception: Throwable, errorMessage: String, metadata: ErrorReporter.Metadata)
Reports an error that occurred during resolver execution.