error

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNil              = errors.New("Nil error")
	ErrType             = errors.New("Type error")
	ErrFull             = errors.New("Space full error")
	ErrNExist           = errors.New("Not exist error")
	ErrExist            = errors.New("Exist error")
	ErrMismatch         = errors.New("Type mismatch error")
	ErrFileStat         = errors.New("file stat error")
	ErrUnknown          = errors.New("Unknown error")
	ErrDirMake          = errors.New("Error when making a folder")
	ErrMarshal          = errors.New("Error while marshaling or unmarshaling data")
	ErrFileIO           = errors.New("Error while reading or writing files")
	ErrCmd              = errors.New("Error while running cmd")
	ErrStatus           = errors.New("Status not satisfied")
	ErrRPCServer        = errors.New("RPC server created error")
	ErrHttpUnauthorized = errors.New("http 401 error, unauthorized")
	ErrHttpNotFound     = errors.New("http 404 error, not found")
	ErrZero             = errors.New("size 0 error")
	ErrPidLive          = errors.New("pid file still lives")
	ErrOperation        = errors.New("operations can not be done")
	ErrPermissionRoot   = errors.New("should not use root")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Err error
	Msg *list.List
}

func ErrNew

func ErrNew(err error, msg string) *Error

func (*Error) AddMsg

func (e *Error) AddMsg(str 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