Files
thamanyah/discovery/internal/db/repositories/errors.go
T
FahdShalhoub c3465bedb1
Build, Push and Deploy Discovery / build-push-deploy (push) Successful in 1m57s
FEAT: Video Search In Discovery
2026-08-29 17:56:11 +03:00

15 lines
582 B
Go

package repositories
import "errors"
// Sentinel errors the repositories return so handlers can tell "there is no
// such row" from "the query failed", without importing database/sql to do it.
// ErrVideoNotFound reports that the catalogue holds no video with that id.
var ErrVideoNotFound = errors.New("video not found")
// ErrInvalidCursor reports that a paging cursor could not be read. It is the
// caller's mistake, not a fault in the catalogue, so it must not reach the
// handler as an indistinguishable query failure.
var ErrInvalidCursor = errors.New("invalid cursor")