errors

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CodeConfigNotFound = "CONFIG_NOT_FOUND"
)

Variables

This section is empty.

Functions

func Code

func Code(err error) string

Return the error code, or the empty string

func ConfigNotFound

func ConfigNotFound(msg string) error

The Cog config was not found

func IsConfigNotFound

func IsConfigNotFound(err error) bool

Types

type CodedError

type CodedError interface {
	Code() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳