-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy patherrors.go
More file actions
18 lines (16 loc) · 845 Bytes
/
errors.go
File metadata and controls
18 lines (16 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package ipam
import "errors"
var (
// ErrNotFound is returned if prefix or cidr was not found
ErrNotFound = errors.New("NotFound")
// ErrNoIPAvailable is returned if no IP is available anymore
ErrNoIPAvailable = errors.New("NoIPAvailableError")
// ErrAlreadyAllocated is returned if the requested address is not available
ErrAlreadyAllocated = errors.New("AlreadyAllocatedError")
// ErrOptimisticLockError is returned if insert or update conflicts with the existing data
ErrOptimisticLockError = errors.New("OptimisticLockError")
// ErrNamespaceDoesNotExist is returned when an operation is performed in a namespace that does not exist.
ErrNamespaceDoesNotExist = errors.New("NamespaceDoesNotExist")
// ErrNameTooLong is returned when a name exceeds the databases max identifier length
ErrNameTooLong = errors.New("NameTooLong")
)