errs

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(code ErrorCode, args ...interface{}) error

Errorf create standard error from code

func GetCode

func GetCode(err error) codes.Code

GetCode returns the error's code

Types

type ErrorCode

type ErrorCode uint32

ErrorCode ..

const (
	CodeUnknown ErrorCode = iota
	CodeUnauthenticated
	CodeDBNotFound
	CodeInternalError
)

..

Jump to

Keyboard shortcuts

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