From fb0a9d875c0c48a5da0be988dc98822cc82cadf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 4 Aug 2023 12:07:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=A4=E4=B8=AA=E5=86=85?= =?UTF-8?q?=E7=BD=AEerror=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- error.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 error.go diff --git a/error.go b/error.go new file mode 100644 index 0000000..b79e0c8 --- /dev/null +++ b/error.go @@ -0,0 +1,17 @@ +// Package task ... +// +// Description : 内置的错误信息 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-08-04 11:50 +package task + +import "errors" + +var ( + // ErrDuplicateTaskKey 任务key重复 + ErrDuplicateTaskKey = errors.New("duplicate task key") + // ErrTaskKeyNotFound 任务key不存在 + ErrTaskKeyNotFound = errors.New("task key doesn't existed in task list, please check your input") +)