handle-validation-and-errors

Installation
SKILL.md

Validation & Error Handling in ABP

ABP builds on ASP.NET Core model validation and adds automatic validation, localization, and a standard exception-handling pipeline. Everything from the ASP.NET Core validation docs still applies.

When to Use

  • Validating DTOs/inputs with data annotations or IValidatableObject.
  • Getting automatic method-argument validation via IValidationEnabled.
  • Integrating FluentValidation into ABP's validation pipeline.
  • Throwing business errors with BusinessException / UserFriendlyException.
  • Localizing error messages by error code.
  • Mapping exception types to HTTP status codes.

When Not to Use

  • Writing the application service or CRUD plumbing itself — use the application-services skill; this skill only covers the validation/error concerns inside it.
  • Authorization checks and AbpAuthorizationException policy — use permissions-and-authorization / authorize-resources; here it appears only in the status-code mapping table.

DTO Validation

Installs
24
GitHub Stars
32
First Seen
Sep 5, 2026