Skip to content

User — Adopt Domain Exceptions & Unified Error Handling #164

@Villarley

Description

@Villarley

Description

Refactor user module to conform to the unified error model.

What is expected

  • Use domain exceptions for validation/not found/conflicts.
  • Map Prisma not found/unique errors → NotFoundException / ConflictException.

What should be modified

  • src/modules/user/presentation/controllers/*
  • src/modules/user/* services/use-cases

Tests

  • Cover 404 on unknown id, 409 on unique collisions, 400 on invalid DTOs.

Acceptance criteria

  • Only domain exceptions used; tests green.

Metadata

Metadata

Labels

onlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions