errors

package
v0.12.66 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 7 Imported by: 0

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