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

20 lines
279 B
Go

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)
}