2022-07-05 13:47:39 +00:00
|
|
|
package blobovniczatree
|
2022-06-29 17:33:48 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
2022-11-09 10:59:24 +00:00
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/util/logicerr"
|
2022-06-29 17:33:48 +00:00
|
|
|
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
|
|
|
|
)
|
|
|
|
|
|
|
|
func isErrOutOfRange(err error) bool {
|
|
|
|
return errors.As(err, new(apistatus.ObjectOutOfRange))
|
|
|
|
}
|
2022-11-09 10:59:24 +00:00
|
|
|
|
|
|
|
func isLogical(err error) bool {
|
|
|
|
return errors.As(err, new(logicerr.Logical))
|
|
|
|
}
|