diff --git a/internal/base/base.go b/internal/base/base.go index db9c145..5384e76 100644 --- a/internal/base/base.go +++ b/internal/base/base.go @@ -7,6 +7,7 @@ package base import ( "context" + "errors" "fmt" "sync" "time" @@ -589,3 +590,10 @@ type Broker interface { PublishCancelation(id string) error Close() error } + +// List of canonical errors. +var ( + ErrNotFound = errors.New("not found") + ErrFailedPrecondition = errors.New("failed precondition") + ErrInternal = errors.New("internal error") +)