Base solution for your next web application
Open Closed

UserFriendlyException not displaying message; acts like normal exception #7186


User avatar
0
gerrypg created

I've got a validation process on a controller method that checks a bunch of conditions that the user has control over before it completes its processing. During this validation i may return a UserFriendlyException with a message telling the user what is wrong. Unfortunately, all the UserFriendlyExceptions are handled like normal exceptions by the ABP framework and only display "AN Exception has occurred.".

Any idea what i'm doing wrong and how to get UserFriendlyException to display its message?

Note: I am running in debug


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Please share your code and error log.

    Model binding and validation occurs before the entry method. https://aspnetboilerplate.com/Pages/Documents/Validating-Data-Transfer-Objects#disabling-validation