View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |

Plans for Cat.Responses

Open question for the existing Cat.Responses module and its users: how do we name error codes?
Status: not started. Cat.Responses itself exists. This plan collects what we know. The open questions need an answer before the build.

Contents

The idea

Every failed response carries errors with a stable code. Clients match on the code, not on the text. The modules define codes and the demo services define their own, and so far nothing says how a service should choose a prefix. A clear convention keeps codes unique and tells a developer what to do.

What we already know

From the module readmes:

From the demo:

Decisions and open questions

Decided

Topic Decision
Advice for your own codes Use a prefix of your own, as the Cat.Validators readme says. Module codes use CAT- with a short area name.

Open

Questions before building

  1. Do the demo services keep the CAT- prefix, or switch to their own?
  2. Do we write down a code convention in the Cat.Responses readme?
  3. Do we want a registry of all module codes?
  4. Is a base class for error definitions worth adding?