.NET 10 Error Handling & Validation
Implements standardized error handling strategies and validation patterns for modern .NET 10 applications.
This skill provides Claude with the specialized knowledge required to build resilient .NET 10 applications using industry-standard patterns. It emphasizes the Result pattern for expected business failures and RFC 9457 (ProblemDetails) for consistent API error responses. By integrating FluentValidation with endpoint filters and establishing global exception handlers, it ensures your code remains clean, maintainable, and performant while avoiding common anti-patterns like using exceptions for flow control.
Key Features
01189 GitHub stars
02Implementation of the Result Pattern for functional error handling
03Global exception handling using modern .NET 10 IExceptionHandler
04Typed error mapping for HTTP status codes (400, 404, 409, 500)
05Seamless FluentValidation integration with ASP.NET Core filters
06Standardized RFC 9457 ProblemDetails API response generation
Use Cases
01Setting up automated request validation at the API boundary
02Refactoring legacy try-catch blocks into the predictable Result pattern
03Designing a consistent error contract for a new RESTful Web API