errors

package
v0.12.69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorWrap

func ErrorWrap(err error, explanation string) error

func GraphQL added in v0.12.66

func GraphQL(err error) error

GraphQL presents server error messages while retaining the response for errors.As. Errors without a usable message are returned unchanged.

func GraphQLInterceptor added in v0.12.66

func GraphQLInterceptor(ctx context.Context, req *http.Request, info *clientv2.GQLRequestInfo, res any, next clientv2.RequestInterceptorFunc) error

GraphQLInterceptor formats errors after all other request interceptors finish.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL