summaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
Diffstat (limited to 'types')
-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 {