From d201e74fff4e6d82d639d858826bdb4190936c07 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Dec 2024 08:52:23 +0800 Subject: Server and self awareness --- errors.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'errors.go') 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") ) -- cgit v1.2.3