Re: New-style syntax for catching exceptions in tags?
"Jonathan Ellis" <[email protected]> Tue, 12 Sep 2006 06:16:40 -0700
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 12 Sep 2006 12:21:19 +0200, "Iwan Vosloo" <[email protected]> said: > Hi, > > if I need to catch an exception in the implementation of a tag, do I > need to use http://spyce.sourceforge.net/docs/doc-tag_new.html , or is > there a way doing it with > http://spyce.sourceforge.net/docs/doc-tag_new2.html ? if you want Spyce to automatically call your handler if there is an exception while processing the tag, you need to use old-style tags. but that's because it's really not very useful to do this. better to just put a Python try/except around specific code. -Jonathan -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642