aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-07 21:13:28 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-07 21:13:28 +0800
commit8c18330aa3976aa981bbe4f135960a92b5923fb6 (patch)
tree6b1548fce387c3d86f110732f971d85f64990c9a /errors.go
downloadmeseircd-8c18330aa3976aa981bbe4f135960a92b5923fb6.tar.gz
meseircd-8c18330aa3976aa981bbe4f135960a92b5923fb6.tar.zst
meseircd-8c18330aa3976aa981bbe4f135960a92b5923fb6.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--errors.go13
1 files changed, 13 insertions, 0 deletions
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")
+)