Add errdefs package
Providers should use this package so the virtual kubelet core controllers can understand the errors produced from the provider code.
This commit is contained in:
10
errdefs/wrapped.go
Normal file
10
errdefs/wrapped.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package errdefs
|
||||
|
||||
// Causal is an error interface for errors which have wrapped another error
|
||||
// in a non-opaque way.
|
||||
//
|
||||
// This pattern is used by github.com/pkg/errors
|
||||
type causal interface {
|
||||
Cause() error
|
||||
error
|
||||
}
|
||||
Reference in New Issue
Block a user