summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-21 09:21:53 -0500
committerJeff Carr <[email protected]>2025-10-21 09:21:53 -0500
commitc1600cff482abf314bf66bcf758979969672bfca (patch)
treee958c6646d1ff33dabe269148dde9aabb1fb0f02 /errors.go
parente734c024bd18ad13e0f5d162dfee256b5e020be7 (diff)
housecleaning & dump more old stuff
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/errors.go b/errors.go
index 154f3af..a2f7c66 100644
--- a/errors.go
+++ b/errors.go
@@ -6,9 +6,13 @@ import (
)
var NotInitialized error = errors.New("your application config not initialized")
-
var VersionMismatch error = errors.New("your PB version does not match")
+var ErrEmpty error = fmt.Errorf("config file was empty")
+var ErrMarshal error = fmt.Errorf("protobuf parse error")
+
+// more complicated errors. good idea or bad idea?
+
// Finally, declare a package-level variable of your new type.
// This is the "sentinel" error that users will compare against.
var ErrNotInitialized = NotInitializedError{}