summaryrefslogtreecommitdiff
path: root/types/error.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 14:00:32 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 14:00:32 +0200
commitd8e466712a4c5af17c27953b38f1b4e7d914d5cf (patch)
tree449149eaebdf8494a2bf8e3c7428b85814cd28b5 /types/error.go
parenta943641fdae051346355a3aaf1d8887da674c97c (diff)
Log: Add 'inherit' that sets the error level as the log level
Diffstat (limited to 'types/error.go')
-rw-r--r--types/error.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/types/error.go b/types/error.go
index 607e6c6..c49fba2 100644
--- a/types/error.go
+++ b/types/error.go
@@ -8,11 +8,17 @@ import (
type ErrorLevel int8
const (
- // All other errors
+ // All other errors, default
ERR_OTHER ErrorLevel = iota
- // The error is just here as additional info
+ // The erorr is just here as additional info
ERR_INFO
+
+ // The error is just here as a warning
+ ERR_WARNING
+
+ // The error is fatal, the app cannot function
+ ERR_FATAL
)
type WrappedErrorMessage struct {