[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 248 - trunk/subversion/tests/clients/cmdline/svntest

From: Eric S. Raymond <esr_at_thyrsus.com>
Date: 2001-10-17 15:28:53 CEST

Ben Collins-Sussman <sussman@collab.net>:
> So... should we simply be looking to trap a list of *particular*
> exceptions? Like all those that our code might be expected tot throw?
> And also, is there a way to catch an exception and *still* print the
> traceback before returning an error value?

Sample code:

        except:
            # Pass the exception upwards for debugging purposes
            (exc_type, exc_value, exc_traceback) = sys.exc_info()
            if exc_type != LiftException:
                self.error("internal error on: " + line)
            raise exc_type, exc_value, exc_traceback

-- 
		Eric S. Raymond
Men trained in arms from their infancy, and animated by the love of liberty,
will afford neither a cheap or easy conquest.
        -- From the Declaration of the Continental Congress, July 1775.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:45 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.