errors

package
v1.3.44 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTkError

func NewTkError(code ErroCode) error

func NewTkErrorWithMessage

func NewTkErrorWithMessage(code ErroCode, message string) error

Types

type ErroCode

type ErroCode int
const (
	ConfigIsNull          ErroCode = 10001
	ParamError            ErroCode = 10002
	HttpError             ErroCode = 10003
	GetTokenError         ErroCode = 10004
	ConfigAppIdIsNull     ErroCode = 10005
	ConfigAppSecretIsNull ErroCode = 10006
)

type TkError

type TkError struct {
	Code    ErroCode
	Message string
}

func (*TkError) Error

func (err *TkError) Error() string

Jump to

Keyboard shortcuts

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