aboutsummaryrefslogblamecommitdiff
path: root/errors.go
blob: c8b053f1dce43942cfdf9708236ac9810fabbbcd (plain) (tree)
1
2
3
4
5
6
7






                






                                                                             
 
package main

import (
	"errors"
)

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")
	ErrNotConnectedServer = errors.New("not connected server")
	ErrSendToSelf         = errors.New("attempt to send message to self")
)