From 8c18330aa3976aa981bbe4f135960a92b5923fb6 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 7 Dec 2024 21:13:28 +0800 Subject: Initial commit --- errors.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 errors.go (limited to 'errors.go') diff --git a/errors.go b/errors.go new file mode 100644 index 0000000..2d4ed02 --- /dev/null +++ b/errors.go @@ -0,0 +1,13 @@ +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") +) -- cgit v1.2.3