47d2239332
Replace ErrNotFound and ErrRangeOutOfBounds to core/object package in order to share them across the libraries. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
11 lines
354 B
Go
11 lines
354 B
Go
package object
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
// ErrNotFound is a basic "not found" error returned by
|
|
// object read functions.
|
|
var ErrNotFound = errors.New("object not found")
|
|
|
|
// ErrRangeOutOfBounds is a basic error of violation of the boundaries of the
|
|
// payload of an object.
|
|
var ErrRangeOutOfBounds = errors.New("payload range is out of bounds")
|