2022-03-17 08:03:58 +00:00
|
|
|
package blobovnicza
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
|
|
|
|
)
|
|
|
|
|
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))
|
|
|
|
}
|