Base solution for your next web application
Open Closed

Custom html for UserFriendlyException #9475


User avatar
0
ips-jm created

Hello, I currently want to implement a feature, where you can create a support ticket, when an errorException occurs. For the errorhandling I'm using throw Abp.Ui.UserfriendlyException() in the backend. I tried finding the files for the html of the error message but wasn't successful (found the error.schtml one but you can't really change something there). I need to include a java script code to that exception message. Is that possible?

I would be very thankful for some advises?!


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

    Hi @ips-jm

    That's not possible. I suggest you to throw a UserFriendlyException with a specific error code and check this error code on the cshtml file. Then, you can run any javascript code you want accordingly.