Debian Codegraph @

pkg/services/chat/zulip/zulip_errors.go

raw
1 package zulip
2
3 import "errors"
4
5 // Error variables for the Zulip package.
6 var (
7 // ErrMissingHost indicates the host is not specified in the configuration.
8 ErrMissingHost = errors.New("host missing from config URL")
9
10 // ErrMissingAPIKey indicates the API key is missing from the configuration.
11 ErrMissingAPIKey = errors.New("API key missing from config URL")
12
13 // ErrMissingBotMail indicates the bot mail address is missing from the configuration.
14 ErrMissingBotMail = errors.New("bot mail missing from config URL")
15
16 // ErrTopicTooLong indicates the topic exceeds the maximum allowed length.
17 ErrTopicTooLong = errors.New("topic exceeds max length")
18
19 // ErrMessageTooLong indicates the message exceeds the maximum allowed size.
20 ErrMessageTooLong = errors.New("message exceeds max size")
21
22 // ErrResponseStatusFailure indicates an unexpected HTTP response status code.
23 ErrResponseStatusFailure = errors.New("response status code unexpected")
24
25 // ErrInvalidHost indicates the host format is invalid.
26 ErrInvalidHost = errors.New("invalid host format")
27
28 // ErrInvalidMessageType indicates the message type is not supported.
29 ErrInvalidMessageType = errors.New("invalid message type")
30
31 // ErrMissingRecipient indicates no recipient was specified for the message.
32 ErrMissingRecipient = errors.New("no recipient specified for the message")
33 )