On 02/05/2006, at 18:30, jvanasco wrote:

>
> is there any current docs on the exception_handler ?   alberto's
> suggestion doesn't play well with .9a5

Try:

     def handle_value_error(self):
         return "A value error was raised"

     @exception_handler(handle_value_error,
                        "isinstance(tg_exception, ValueError)")
     @expose()
     def raise_value_error(self):
         raise ValueError

This is, change "tg_exceptions" to "tg_exception", this was renamed  
in [1257]

Seems branches/1.0 is out of sync with /tags/0.9a5... posting to  
turbogears-trunk in a second to note it.

Docs on error_handling I'm aware of are at http://tinyurl.com/e9j7p

Hope it helps

Alberto


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to