diff options
author | Runxi Yu <me@runxiyu.org> | 2024-12-08 08:52:23 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-12-08 08:52:23 +0800 |
commit | d201e74fff4e6d82d639d858826bdb4190936c07 (patch) | |
tree | 7e5de8e206bf913fc0bbef5eba81b06fa9c1e06c /errors.go | |
parent | Add basic command handling (diff) | |
download | meseircd-d201e74fff4e6d82d639d858826bdb4190936c07.tar.gz meseircd-d201e74fff4e6d82d639d858826bdb4190936c07.tar.zst meseircd-d201e74fff4e6d82d639d858826bdb4190936c07.zip |
Server and self awareness
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -5,9 +5,11 @@ import ( ) var ( - ErrEmptyMessage = errors.New("empty message") - ErrIllegalByte = errors.New("illegal byte") - ErrTagsTooLong = errors.New("tags too long") - ErrInvalidTagContent = errors.New("invalid tag content") - ErrBodyTooLong = errors.New("body too long") + ErrEmptyMessage = errors.New("empty message") + ErrIllegalByte = errors.New("illegal byte") + ErrTagsTooLong = errors.New("tags too long") + ErrInvalidTagContent = errors.New("invalid tag content") + ErrBodyTooLong = errors.New("body too long") + ErrNotConnectedServer = errors.New("not connected server") + ErrSendToSelf = errors.New("attempt to send message to self") ) |