errobj

package
v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoNetworkMessageInBluePrint = errors.New("no network message in bluePrint")
	ErrPortNtFound              = errors.New("port not found")
	ErrJasonNewObjectFailed     = errors.New("jason new object failed")
	ErrJasonGetStringFailed     = errors.New("jason get string failed")
	ErrGetPortConfigError       = errors.New("get port config error")
	ErrPodNSOrPodNameIsNil      = errors.New(" podNs is nil or podName is nil")
)
View Source
var EtcdKeyNotFound = "Key not found"

Functions

func BuildErrWithCode

func BuildErrWithCode(code int, err error) error

func Err500

func Err500(o *beego.Controller, err error)

func GetErrMsg

func GetErrMsg(respData []byte) string

func HandleErr

func HandleErr(o *beego.Controller, err error)

func IsEqual

func IsEqual(errLeft, errRight error) bool

func IsKeyNotFoundError

func IsKeyNotFoundError(err error) bool

func NotfoundErr404

func NotfoundErr404(o *beego.Controller, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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