errors

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToUserFacing

func MapToUserFacing(err error, resp *http.Response) error

MapToUserFacing maps the error to a custom user facing error type.

Types

type APIError

type APIError struct {
	HttpStatusCode int
	Code           string // A short string representing the reported error. Can be used to handle errors programmatically.
	Message        string // A human-readable message providing more details about the error.
	CorrelationId  string // A correlation ID that can be used to help debug the error.
}

APIError is a custom error type for API errors.

func (*APIError) Error

func (e *APIError) Error() string

Jump to

Keyboard shortcuts

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