diff options
Diffstat (limited to 'errors.go')
| -rw-r--r-- | errors.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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{} |
