status

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDatabaseError

func CheckDatabaseError(err error, msg ...string) error

Types

type Error

type Error int
const (
	// InternalServerError internal error
	InternalServerError Error = http.StatusInternalServerError*1e6 + iota + 1
	UploadFileFailed
	ExtractFileFailed
	LoadVMFailed
)
const (
	// @errTalk Unauthorized unauthorized
	Unauthorized Error = http.StatusUnauthorized*1e6 + iota + 1
	InvalidAuthValue
	InvalidAuthAccountID
	NoProjectPermission
)
const (
	Forbidden Error = http.StatusForbidden*1e6 + iota + 1
	// @errTalk deployed instance limit
	InstanceLimit
)
const (
	// BadRequest
	BadRequest Error = http.StatusBadRequest*1e6 + iota + 1
	MD5ChecksumFailed
	InvalidChainClient
)
const (
	// Conflict conflict error
	Conflict Error = http.StatusConflict*1e6 + iota + 1
)
const (
	// NotFound
	NotFound Error = http.StatusNotFound*1e6 + iota + 1
)

func (Error) CanBeTalk

func (v Error) CanBeTalk() bool

func (Error) Code

func (v Error) Code() int

func (Error) Error

func (v Error) Error() string

func (Error) Key

func (v Error) Key() string

func (Error) Msg

func (v Error) Msg() string

func (Error) ServiceCode

func (Error) ServiceCode() int

func (Error) StatusCode

func (v Error) StatusCode() int

func (Error) StatusErr

func (v Error) StatusErr() *statusx.StatusErr

func (Error) Unwrap

func (v Error) Unwrap() error

Jump to

Keyboard shortcuts

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