Documentation
¶
Overview ¶
Package errors provides error codes and types for the TK SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTkErrorWithMessage ¶
NewTkErrorWithMessage 创建带消息的途刻错误
Types ¶
type ErroCode ¶
type ErroCode int
ErroCode 错误代码类型
const ( // ConfigIsNull 配置为空错误 ConfigIsNull ErroCode = 10001 // ParamError 参数错误 ParamError ErroCode = 10002 HTTPError ErroCode = 10003 // nolint: revive // backward compatibility GetTokenError ErroCode = 10004 ConfigAppIDIsNull ErroCode = 10005 // nolint: revive // backward compatibility ConfigAppSecretIsNull ErroCode = 10006 )
Click to show internal directories.
Click to hide internal directories.