errors

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatAPIError added in v0.12.1

func FormatAPIError(err error) error

Types

type APIErrorResponse added in v0.12.1

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