errors.go 338 B

123456789101112131415
  1. package storage
  2. import "errors"
  3. var (
  4. // ErrAlreadyExists may be thrown by docs. E.g., save a document twice.
  5. //
  6. // Since: 2.3
  7. ErrAlreadyExists = errors.New("document already exists")
  8. // ErrNotExists may be thrown by docs. E.g., save an unknown document.
  9. //
  10. // Since: 2.3
  11. ErrNotExists = errors.New("document does not exist")
  12. )