Matt Wilson schrieb:
> I have a controller method that gets a user_id as a parameter, and
> then the method tries to perform some operation.
> 
> I defined an exception_handler that catches a particular exception.
> 
> In the scenario where I land in my exception handler, it isn't obvious
> to me how to access all the parameters passed into the original
> function.

Why not make the user_id an attribute of MyException?
raise MyException('User does not exist', user_id)

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to