frostfs-node/pkg/local_object_storage/blobstor/common/errors.go

15 lines
433 B
Go
Raw Normal View History

package common
import (
"errors"
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/util/logicerr"
)
// ErrReadOnly MUST be returned for modifying operations when the storage was opened
// in readonly mode.
var ErrReadOnly = logicerr.Wrap(errors.New("opened as read-only"))
// ErrNoSpace MUST be returned when there is no space to put an object on the device.
var ErrNoSpace = logicerr.Wrap(errors.New("no free space"))