2020-11-30 16:39:05 +00:00
|
|
|
package object
|
|
|
|
|
2021-05-18 08:12:51 +00:00
|
|
|
import "errors"
|
2020-11-30 16:39:05 +00:00
|
|
|
|
|
|
|
// 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")
|
2020-12-01 10:48:28 +00:00
|
|
|
|
|
|
|
// ErrAlreadyRemoved returned when object has tombstone in graveyard.
|
|
|
|
var ErrAlreadyRemoved = errors.New("object already removed")
|
2021-10-27 15:15:16 +00:00
|
|
|
|
|
|
|
// ErrEndOfListing is returned from object listing with cursor
|
|
|
|
// when storage can't return any more objects after provided
|
|
|
|
// cursor. Use nil cursor object to start listing again.
|
|
|
|
var ErrEndOfListing = errors.New("end of object listing")
|