[web2py] Re: Is it possible to trigger some action on error?

2018-06-03 Thread Ur. Kr.
This doesn't works for errors that don't redirect there, right? So if I make an AJAX request that causes an error on the server, it wouldn't trigger the error handling function? On Sunday, June 3, 2018 at 4:24:01 PM UTC+2, Anthony wrote: > > One option is to create a custom error handler (see

[web2py] Re: Is it possible to trigger some action on error?

2018-06-03 Thread Anthony
One option is to create a custom error handler (see http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error) and have it take whatever action is desired before returning a response. Anthony On Sunday, June 3, 2018 at 9:15:04 AM UTC-4, Ur. Kr. wrote: > > Is it possible to trigger

[web2py] Is it possible to trigger some action on error?

2018-06-03 Thread Ur. Kr.
Is it possible to trigger some action when an error occurs? When an error file is added to the errors folder. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues)