Base solution for your next web application
Open Closed

UserFriendlyException #4922


User avatar
0
tteoh created

Hi, I'm using MVC5AJ1.

I'm wondering if there is a way to suppress the dialog box that being thrown by UserFriendlyException?

For example how to suppress this dialog box: [attachment=0:48als4xc]Capture.PNG[/attachment:48als4xc]

Thanks. /Tommy


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

    To suppress it for specific requests, pass in abpHandleError option:

    abp.ajax({
        url: '...',
        abpHandleError: false
    });
    

    To suppress it for all requests, override showError after abp.jquery.js is loaded:

    abp.ajax.showError = function () {};