Immediate.Validation
Handling failures
The result of a validation behavior running is that when a parameter fails one or more validations, a ValidationException
is thrown, which can be handled via ProblemDetails
or any other infrastructure mechanism.
For example, using ASP.NET Core ProblemDetails
: