errors

package
v0.0.0-...-84ddfae Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorIsCode

func ErrorIsCode(err error, code ErrorCode) bool

func NewError

func NewError(code ErrorCode, s string) error

func NewErrorf

func NewErrorf(code ErrorCode, format string, args ...any) error

Types

type ErrorCode

type ErrorCode int
const (
	NotFound ErrorCode = iota + 1
	PreconditionFailed
)

func GetErrorCode

func GetErrorCode(err error) ErrorCode

Jump to

Keyboard shortcuts

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