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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAny                              = errors.New("any")
	Err403                              = errors.New("bad request json body")
	Err406                              = errors.New("create port err")
	ErrOpenstackCreateBulkPortsFailed   = errors.New("openStack createbulkports err")
	ErrMarshalFailed                    = errors.New("json.Marshal Err")
	ErrUnmarshalFailed                  = errors.New("json.Unmarshal Err")
	ErrRestfulPostFailed                = errors.New("restful post Err")
	ErrHTTPPostStatusCode               = errors.New("restful post status code err")
	ErrRequestNeedAdminPermission       = errors.New("request need admin permission")
	ErrCheckAllocationPools             = errors.New("allocation pools check error")
	ErrTenantHasPodsInUse               = errors.New("tenant has pods in use")
	ErrNetworkHasPortsInUse             = errors.New("network has ports in use")
	ErrNetworkHasIGsInUse               = errors.New("network has ip groups in use")
	ErrEtcdRestoreFromEtcdAdmToolFailed = errors.New("etcd restore from EtcdAdmTool failed err")
	ErrArgTypeMismatch                  = errors.New("argument type mismatch")
)
View Source
var (
	ErrJSON  = errors.New("bad request json body")
	ErrAuth  = errors.New("auth err")
	ErrDoing = errors.New("request is doning")
	ErrTmOut = errors.New("request time out")
)
View Source
var (
	ErrObjectPointerIsNil = errors.New("object pointer is nil")

	ErrRecordAlreadyExist = errors.New("record already exsit")
	ErrRecordNotExist     = errors.New("record already exsit")
	ErrObjectTypeMismatch = errors.New("object type mismatch")
)
View Source
var (
	ErrNetworkNotExist             = errors.New("network not exist")
	ErrNetworkTypeNotSupported     = errors.New("network type not supported")
	ErrVlanTransparentConflictArgs = errors.New("vlan_transparent confict args")
	ErrInvalidVlanID               = errors.New("invalid vlan ID")
)
View Source
var (
	ErrRequiredFieldIsNil = errors.New("required field is nil")
	ErrGatewayTypeError   = errors.New("Gateway type error")
)

Functions

func IsCanNotFindErr

func IsCanNotFindErr(err error) bool

func IsEqual

func IsEqual(errLeft, errRight error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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