errors

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package errors contains the mappings and functions that standardize errors returned from the API to SDK's clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorFromGraphqlError

func ErrorFromGraphqlError(err error) error

ErrorFromGraphqlError returns an SDK error type from a GraphQL error.

func ErrorFromGraphqlProblems

func ErrorFromGraphqlProblems(problems []internal.GraphQLProblem) error

ErrorFromGraphqlProblems returns an SDK error from GraphQL problems.

func ErrorFromHTTPResponse

func ErrorFromHTTPResponse(r *http.Response) error

ErrorFromHTTPResponse returns an SDK error from an HTTP response.

func NewError

func NewError(code types.ErrorCode, format string, args ...interface{}) error

NewError returns a new Error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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