May 27, 2014, 10:59 AM
[CLOSED] Ajax Method: intercept errors globally (server-side)
Hello,
I have introduced ELMAH as error logger in my web application.
By default it cannot trap unhandled exceptions coming from inside an ajax method (DirectMethod, DirectEvent).
Of course I can trap one exception using try catch:
Thank you
I have introduced ELMAH as error logger in my web application.
By default it cannot trap unhandled exceptions coming from inside an ajax method (DirectMethod, DirectEvent).
Of course I can trap one exception using try catch:
try {
// more code
} catch(Exception ex) {
Elmah.ErrorSignal.FromCurrentContext()
.Raise(ex);
}
But, I'd like to Signal all exceptions in all ajax methods. Is there any hook (an event, for example) to do this?Thank you
Last edited by Daniil; Jun 03, 2014 at 2:03 PM.
Reason: [CLOSED]