Raising an exception always terminates execution at that point. However, if 
the code in question is wrapped in a try/except, the "except" block may 
take over (if the particular exception raised is caught). In the case of a 
web2py request, all application code is executed inside a try/except in 
gluon.main.wsgibase (actually, several nested try/except blocks). In 
particular, raising an HTTP exception gets caught and results in an HTTP 
response being sent back immediately.

Anthony

On Wednesday, June 1, 2016 at 12:20:53 PM UTC-4, Steve Joe wrote:
>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to