package repository

import (
	"errors"

	"github.com/zeromicro/go-zero/core/stores/mon"
)

// Common repository errors
var (
	// ErrNotFound is returned when a requested resource is not found
	ErrNotFound = mon.ErrNotFound

	// ErrInvalidObjectID is returned when an invalid MongoDB ObjectID is provided
	ErrInvalidObjectID = errors.New("invalid objectId")

	// ErrDuplicateKey is returned when attempting to insert a document with a duplicate key
	ErrDuplicateKey = errors.New("duplicate key error")

	// ErrInvalidInput is returned when input validation fails
	ErrInvalidInput = errors.New("invalid input")
)
