exceptions

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrCode_InternalError 系统错误
	ErrCode_InternalError = cExceptions.ErrCodeInternalError
	// ErrCode_InvalidParams 业务错误
	ErrCode_InvalidParams = cExceptions.ErrCodeInvalidParams
	// ErrCode_DeveloperError 开发者错误
	ErrCode_DeveloperError = cExceptions.ErrCodeDeveloperError

	// ErrCode_RATE_LIMIT_ERROR限流错误码
	ErrCode_Rate_Limit = "k_cf_ec_200009"

	// ErrCode_Flow_NoPermission 无权限操作流程
	ErrCode_Flow_NoPermission = "k_wf_ec_200036"
	// ErrCode_Flow_NotExist 流程不存在
	ErrCode_Flow_NotExist = "k_wf_ec_2001006"
	// ErrCode_Flow_ExecutionNotExist 流程实例 ID 不存在
	ErrCode_Flow_ExecutionNotExist = "k_wf_ec_2001005"
	// ErrCode_Flow_NotSupportCallFlowType 不支持调用此类型流程
	ErrCode_Flow_NotSupportCallFlowType = "k_wf_ec_2001004"
	// ErrCode_Flow_NotSupportRevokeFlow 不支持撤销该流程 (无人工任务)
	ErrCode_Flow_NotSupportRevokeFlow = "k_wf_ec_2001003"
	// ErrCode_Flow_NoReqInputParam 缺少流程的必填参数
	ErrCode_Flow_NoReqInputParam = "k_wf_ec_2001002"
	// ErrCode_Flow_InvalidParam 流程参数中 APIName 无效
	ErrCode_Flow_InvalidParam = "k_wf_ec_2001001"
)
View Source
const (
	// ErrCode_Data_RecordNotFound 记录不存在
	ErrCode_Data_RecordNotFound = "k_cf_ec_300004"
)

special for golang

Variables

View Source
var (
	ErrTypeRecordNotFound = cExceptions.NewErrWithCode(ErrCode_Data_RecordNotFound, "data record not found")
)

Functions

func IsRecordNotFoundErr

func IsRecordNotFoundErr(err error) bool

Types

type BaseError

type BaseError = cExceptions.BaseError

Jump to

Keyboard shortcuts

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