fcdbf5e509
All logic errors are wrapped in `logicerr.Logical` type and do not affect shard error counter. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
14 lines
433 B
Go
14 lines
433 B
Go
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"))
|