What problem does it solve?
It prevents inconsistent, hard-to-debug error responses in .NET applications by standardizing how expected failures and unexpected exceptions are transformed into RFC 9457 ProblemDetails.
Core Features & Use Cases
- Result pattern for expected failures: Use
Result/Result<T> to represent business-rule outcomes like “not found” or “validation failed” without throwing exceptions.
- Typed mapping to ProblemDetails: Convert failures into structured
ProblemDetails responses that include type, title, status, detail, and optional errors.
- Global exception handling: Catch unexpected exceptions once and return a safe, consistent 500 response with optional development-only detail.
- FluentValidation at the boundary: Validate requests using FluentValidation and return
ValidationProblem details via endpoint filters.
Quick Start
Load this skill when implementing error handling, validation, or API error contracts in your .NET 10 endpoints so your failures consistently return RFC 9457 ProblemDetails.