Documentation Index
Fetch the complete documentation index at: https://mintlify.com/FloppyShelf/Problemize/llms.txt
Use this file to discover all available pages before exploring further.
Welcome to Problemize
Problemize is a robust and extensible framework for centralized exception handling in .NET Web APIs. It automatically converts unhandled exceptions into standardized RFC 9457 Problem Details responses, making your API error handling clean, consistent, and maintainable.Why Problemize?
Zero boilerplate
Two-line setup with extension methods. No controllers to modify, no try-catch blocks to write.
Standardized responses
Automatic ProblemDetails formatting following RFC 9457 specification for consistent error responses.
Smart status mapping
Built-in mapping for common .NET exceptions to appropriate HTTP status codes.
Fully extensible
Implement custom status code mappers for your domain-specific exceptions.
Key features
Automatic exception handling
Automatic exception handling
Global exception handler middleware that catches all unhandled exceptions and converts them to standardized ProblemDetails responses.
Intelligent status code mapping
Intelligent status code mapping
The
StatusCodeMapper automatically maps common exceptions:ArgumentException→ 400 Bad RequestUnauthorizedAccessException→ 401 UnauthorizedKeyNotFoundException→ 404 Not FoundNotImplementedException→ 501 Not Implemented- And many more…
Validation support
Validation support
Special handling for
ValidationException with ValidationProblemDetails responses.Rich metadata
Rich metadata
Automatically includes request trace identifiers, activity IDs, and request instance information.
Example response
When an exception occurs, Problemize automatically generates a structured response:Get started
Installation
Install the NuGet package and add to your project
Quickstart
Get up and running in under 2 minutes
Problemize integrates seamlessly with ASP.NET Core’s built-in
IExceptionHandler and IProblemDetailsService interfaces.Architecture overview
Problemize consists of four main components:IStatusCodeMapper
Interface for mapping exceptions to HTTP status codes. Enables custom exception handling logic.
StatusCodeMapper
Default implementation handling common .NET exceptions with sensible HTTP status codes.
ExceptionHandler
ASP.NET Core
IExceptionHandler implementation that orchestrates exception conversion to ProblemDetails.