Files
api/repositories/repository.go
T
2019-06-18 20:34:58 +02:00

13 lines
522 B
Go

package repositories
import "errors"
// ErrNotFound should be returned instead of any database-specific not found error.
var ErrNotFound = errors.New("resource not found")
// ErrInvalidPosition is returned when the log post is attempted moved outside of the range.
var ErrInvalidPosition = errors.New("position is out of bounds")
// ErrParentMismatch is returned if the list refer to different parent objects when it shouldn't.
var ErrParentMismatch = errors.New("parent resource is not the same for the entire list")