Am 07.02.2006 um 18:09 schrieb Simon Belak:

Any resulting errors will be passed back through tg_errors, either as a dictionary containing key:exception pairs (where key is usually an argument name) or an exception.

IMO form validation errors and arbitrary, not explicitly handled exceptions shouldn't be handled the same way.

tg_errors is fine for form validation errors, which are expected and must be handled. Other unhandled exceptions however are usually programmer's errors (*), and should be treated appropriately (interactive traceback in debug environment, 500 page and traceback written to logfile in production environment).

(*) sometimes the error just was not to handle the exception.

    Explicit is better than implicit.
        ...
    Errors should never pass silently.
    Unless explicitly silenced.

ciao
Martina

Reply via email to