errors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultRetryPolicy

func NewDefaultRetryPolicy() *errors.RetryPolicy

func WrapAPIGenDefaultError

func WrapAPIGenDefaultError(code int, apiGenDefaultErr any) *errors.APIError

func WrapAPIGenError

func WrapAPIGenError(code int, err APIGenError) *errors.APIError

Types

type APIGenDefaultError

type APIGenDefaultError interface {
	GetErrorOr(string) string
}

type APIGenError

type APIGenError interface {
	GetCodeOr(string) string
	GetDescriptionOr(string) string
}

type ExtAPIGenError

type ExtAPIGenError interface {
	APIGenError
	GetCommonRetryPolicy() *errors.RetryPolicy
	GetType() *string
	GetDetails() map[string]json.RawMessage
}

Jump to

Keyboard shortcuts

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