-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
17 lines (15 loc) · 866 Bytes
/
errors.go
File metadata and controls
17 lines (15 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package waitfor
import "errors"
var (
// ErrWait is returned when resource availability testing fails.
// This error indicates that one or more resources did not become
// available within the configured timeout and retry parameters.
ErrWait = errors.New("failed to wait for resource availability")
// ErrInvalidArgument is returned when invalid arguments are passed
// to functions, such as empty resource URLs or invalid configuration.
ErrInvalidArgument = errors.New("invalid argument")
// ErrResourceAlreadyRegistered is returned when a resource factory is already registered for a scheme.
ErrResourceAlreadyRegistered = errors.New("resource is already registered with a given scheme")
// ErrResourceNotFound is returned when no resource factory is found for a scheme.
ErrResourceNotFound = errors.New("resource with a given scheme is not found")
)