errors

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoAPIDefinition = 10001 + iota
	ConfigCheckError
	ConfigCheckServerConfigWrong
	NoToMergeFile
)
View Source
const (
	DefinitionUnkownError = 10100 + iota
	DefinitionServerError
	DefinitionServerParseError
	DefinitionWellknownEmpty
)
View Source
const (
	NotifierRunError = 10200 + iota
	ReadTemplateError
	ExecTemplateError
)
View Source
const (
	SourceReadError = 10300 + iota
	SourceReadContentError
)

Variables

This section is empty.

Functions

func Code

func Code(err error) int

func New

func New(code int, msg ...string) error

func Wrap

func Wrap(err error, code int) error

Types

type Error

type Error struct {
	Code    int
	Message string
}

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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