forked from go-lark/lark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.go
19 lines (17 loc) · 834 Bytes
/
error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package lark
import "errors"
// Errors
var (
ErrBotTypeError = errors.New("Bot type error")
ErrParamUserID = errors.New("Param error: UserID")
ErrParamMessageID = errors.New("Param error: Message ID")
ErrParamExceedInputLimit = errors.New("Param error: Exceed input limit")
ErrMessageTypeNotSuppored = errors.New("Message type not supported")
ErrEncryptionNotEnabled = errors.New("Encryption is not enabled")
ErrCustomHTTPClientNotSet = errors.New("Custom HTTP client not set")
ErrMessageNotBuild = errors.New("Message not build")
ErrUnsupportedUIDType = errors.New("Unsupported UID type")
ErrInvalidReceiveID = errors.New("Invalid receive ID")
ErrEventTypeNotMatch = errors.New("Event type not match")
ErrMessageType = errors.New("Message type error")
)