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.

12 lines
522 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")