aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-08 08:52:23 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-08 08:52:23 +0800
commitd201e74fff4e6d82d639d858826bdb4190936c07 (patch)
tree7e5de8e206bf913fc0bbef5eba81b06fa9c1e06c /errors.go
parentAdd basic command handling (diff)
downloadmeseircd-d201e74fff4e6d82d639d858826bdb4190936c07.tar.gz
meseircd-d201e74fff4e6d82d639d858826bdb4190936c07.tar.zst
meseircd-d201e74fff4e6d82d639d858826bdb4190936c07.zip
Server and self awareness
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/errors.go b/errors.go
index 2d4ed02..c8b053f 100644
--- a/errors.go
+++ b/errors.go
@@ -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")
)