-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
28 lines (21 loc) · 1008 Bytes
/
Copy patherrors.go
File metadata and controls
28 lines (21 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package oak
import "errors"
var (
// ErrNotBuilt is returned when Resolve is called before Build.
ErrNotBuilt = errors.New("container not built")
// ErrAlreadyBuilt is returned when Register or Build is called after the
// container has already been built.
ErrAlreadyBuilt = errors.New("container already built")
// ErrProviderNotFound is returned when no provider is registered for the
// requested type or name.
ErrProviderNotFound = errors.New("provider not found")
// ErrCircularDependency is returned when the dependency graph contains a
// cycle. The error message includes the full chain.
ErrCircularDependency = errors.New("circular dependency detected")
// ErrDuplicateProvider is returned when a provider for the same type or
// name is registered more than once.
ErrDuplicateProvider = errors.New("duplicate provider")
// ErrAlreadyShutdown is returned when [Container.Shutdown] is called
// more than once.
ErrAlreadyShutdown = errors.New("container already shut down")
)