errors

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TipBotError

type TipBotError struct {
	Message string `json:"message"`
	Err     error
	Code    TipBotErrorType `json:"code"`
}

func Create added in v0.5.1

func Create(code TipBotErrorType) TipBotError

func New

func New(code TipBotErrorType, err error) TipBotError

func (TipBotError) Error

func (e TipBotError) Error() string

type TipBotErrorType

type TipBotErrorType int
const (
	UnknownError TipBotErrorType = iota
	NoReplyMessageError
	InvalidSyntaxError
	MaxReachedError
	NoPhotoError
	NoFileFoundError
	NotActiveError
	InvalidTypeError
)
const (
	UserNoWalletError TipBotErrorType = 2000 + iota
	BalanceToLowError
	SelfPaymentError
	NoPrivateChatError
	GetBalanceError
	DecodeAmountError
	DecodePerUserAmountError
	InvalidAmountError
	InvalidAmountPerUserError
)
const (
	NoShopError TipBotErrorType = 3000 + iota
	NotShopOwnerError
	ShopNoOwnerError
	ItemIdMismatchError
)

Jump to

Keyboard shortcuts

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