Files
drive/apps/backend/internal/user/err.go

20 lines
279 B
Go
Raw Normal View History

2025-11-26 01:09:42 +00:00
package user
import (
"fmt"
"github.com/google/uuid"
)
type NotFoundError struct {
id uuid.UUID
}
func newNotFoundError(id uuid.UUID) *NotFoundError {
return &NotFoundError{id}
}
func (e *NotFoundError) Error() string {
return fmt.Sprintf("user not found: %v", e.id)
}