Re: Exception handler
"Baptiste Lepilleur" <[email protected]> Thu, 27 Feb 2003 08:15:35 +0100
| Newsgroups | gmane.comp.lib.cppunit.devel |
|---|---|
| Message-ID | <010201c2de30$06248b90$af50c3d4@lain> |
You need to get the TestResult and use the following methods: /// Adds the specified protector to the protector chain. virtual void pushProtector( Protector *protector ); /// Removes the last protector from the protector chain. virtual void popProtector(); Baptiste. ----- Original Message ----- From: "Noel Yap" <Noel.Yap-/PgpppG8B+R7qynMiXIxWgC/[email protected]> To: "Baptiste Lepilleur" <[email protected]> Cc: <[email protected]> Sent: Wednesday, February 26, 2003 10:36 PM Subject: Re: [Cppunit-devel] Exception handler > Baptiste Lepilleur wrote: > > > > Give a look to class Protector (available since 1.9.10). It allow > > interception of non STL exception. Check the implementation of the > > DefaultProtector for an example of usage. > > This looks good except that I'm using a TextTestRunner and it hides > TestRunner::run( Protector* ). > > Would it hurt anything if a using declaration were used? > > Thanks, > Noel > -- > NOTICE: If received in error, please destroy and notify sender. Sender > does not waive confidentiality or privilege, and use is prohibited. > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp