2022-03-17 08:03:58 +00:00
|
|
|
package blobovnicza
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
2022-12-23 17:35:35 +00:00
|
|
|
apistatus "github.com/TrueCloudLab/frostfs-sdk-go/client/status"
|
2022-03-17 08:03:58 +00:00
|
|
|
)
|
|
|
|
|
2022-04-21 11:28:05 +00:00
|
|
|
// IsErrNotFound checks if the error returned by Blobovnicza Get/Delete method
|
|
|
|
// corresponds to the missing object.
|
2022-03-17 08:03:58 +00:00
|
|
|
func IsErrNotFound(err error) bool {
|
|
|
|
return errors.As(err, new(apistatus.ObjectNotFound))
|
|
|
|
}
|