Documentation ¶
Index ¶
- Variables
- func BuildErrWithCode(code int, err error) error
- func Err500(o *beego.Controller, err error)
- func GetErrMsg(respData []byte) string
- func HandleErr(o *beego.Controller, err error)
- func IsEqual(errLeft, errRight error) bool
- func IsKeyNotFoundError(err error) bool
- func NotfoundErr404(o *beego.Controller, err error)
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 Err500 ¶
func Err500(o *beego.Controller, err error)
func HandleErr ¶
func HandleErr(o *beego.Controller, err error)
func IsKeyNotFoundError ¶
func NotfoundErr404 ¶
func NotfoundErr404(o *beego.Controller, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.