errors

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAPIError added in v0.12.0

func FormatAPIError(r *http.Response, err error) error

Types

type APIErrorResponse added in v0.12.0

type APIErrorResponse struct {
	Status  int    `json:"status"`
	Title   string `json:"title"`
	Detail  string `json:"detail"`
	TraceId string `json:"traceId"`
}

type DuplicatedError

type DuplicatedError struct {
	// contains filtered or unexported fields
}

func Duplicated

func Duplicated(msg string) *DuplicatedError

func (*DuplicatedError) Error

func (e *DuplicatedError) Error() string

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

func NotFound

func NotFound(msg string) *NotFoundError

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type TimedOutError

type TimedOutError struct {
	// contains filtered or unexported fields
}

func TimedOut

func TimedOut(operation string, timeout time.Duration) *TimedOutError

func (*TimedOutError) Error

func (e *TimedOutError) Error() string

Jump to

Keyboard shortcuts

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