What problem does it solve?
This Skill helps you design ABP Framework error handling so API consumers receive consistent, safe, and actionable error payloads instead of leaking internal failures.
Core Features & Use Cases
- Standardized RemoteServiceErrorResponse: Produces the expected JSON error shape for API/AJAX requests, including optional error codes and details.
- Code, details, validation, and localization support: Guides implementing
IHasErrorCode, IHasErrorDetails, and using AbpValidationException for structured validationErrors, plus localized messages for user-friendly output.
- Correct HTTP status mapping + customization: Explains ABP’s default exception-to-status mapping and how to override it via
AbpExceptionHandlingOptions.
- Logging controls and self-logging: Covers automatic logging behavior,
IHasLogLevel, and IExceptionWithSelfLogging for additional contextual logs without exposing sensitive data.
Quick Start
Ask your agent to explain and implement ABP exception handling for your API so RemoteServiceErrorResponse includes error codes and validation errors, maps exceptions to the right HTTP statuses, and avoids leaking stack traces in production.