GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
775 B

  1. package repositories
  2. import "errors"
  3. // ErrNotFound should be returned instead of any database-specific not found error.
  4. var ErrNotFound = errors.New("resource not found")
  5. // ErrInvalidPosition is returned when the log post is attempted moved outside of the range.
  6. var ErrInvalidPosition = errors.New("position is out of bounds")
  7. // ErrParentMismatch is returned if the list refer to different parent objects when it shouldn't.
  8. var ErrParentMismatch = errors.New("parent resource is not the same for the entire list")
  9. // ErrTagExists is returned if an existing tag is added again.
  10. var ErrTagExists = errors.New("tag already exists")
  11. // ErrTagDoesNotExist is returned if a non-existing tag is attempted removed.
  12. var ErrTagDoesNotExist = errors.New("tag already exists")