0
haytham created
Hello How can read/catch ValidationResult in void OnException(ExceptionContext context)
thanks
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
3 Answer(s)
-
0
if (context.Exception is AbpValidationException) { // ... }ASP.NET Core: Implement IExceptionFilter, e.g. AbpExceptionFilter MVC5: Available in controller, e.g. AbpController
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
thanks for your reply but how to read the message from ValidationResult
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
<a class="postlink" href="https://stackoverflow.com/questions/12552687/get-error-message-when-using-custom-validation-attribute">https://stackoverflow.com/questions/125 ... -attribute</a>
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)