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 )
Click to show internal directories.
Click to hide internal directories.