[VOL-3767] Log instead of throwing errors when deletion target is not found
Change-Id: I497fa7f41bb4fe2ec6662832b5d7c8cb45f17699
diff --git a/internal/pkg/olterrors/olterrors.go b/internal/pkg/olterrors/olterrors.go
index bafc721..53c4d61 100644
--- a/internal/pkg/olterrors/olterrors.go
+++ b/internal/pkg/olterrors/olterrors.go
@@ -56,6 +56,11 @@
LogAt(log.LogLevel) error
}
+// WrappedError can be used to extract the wrapped errors of structs that include ErrAdapter
+type WrappedError interface {
+ Unwrap() error
+}
+
// ErrAdapter represents a basic adapter error that combines an name, field set
// and wrapped error
type ErrAdapter struct {