/[escript]/trunk/esysUtils/test/EsysExceptionTestCase.cpp
ViewVC logotype

Diff of /trunk/esysUtils/test/EsysExceptionTestCase.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1627 by phornby, Thu Feb 28 17:19:44 2008 UTC revision 1628 by phornby, Fri Jul 11 13:12:46 2008 UTC
# Line 40  public: Line 40  public:
40     // Copy Constructor.     // Copy Constructor.
41     DerivedEx(const DerivedEx &other): Parent(other) { updateMessage(); }     DerivedEx(const DerivedEx &other): Parent(other) { updateMessage(); }
42    
43       inline virtual DerivedEx &
44       operator=(const DerivedEx &other) THROW_ANY
45          {
46             Parent::operator=(other);
47             updateMessage();
48             return *this;
49          }
50    
51     /// Return the exception name     /// Return the exception name
52     virtual const string & exceptionName() const     virtual const string & exceptionName() const
53        {        {
# Line 257  void EsysExceptionTestCase::testCase2() Line 265  void EsysExceptionTestCase::testCase2()
265        throw ex4;        throw ex4;
266          }          }
267      catch (exception& e) {      catch (exception& e) {
268        cout << e.what() << endl;            // cout << e.what() << endl;
269              assert(e.what() == string("DerivedException: Exception caught"
270                                        " as std::exception")
271                     );
272      }      }
273      catch (...) {      catch (...) {
274             //             //

Legend:
Removed from v.1627  
changed lines
  Added in v.1628

  ViewVC Help
Powered by ViewVC 1.1.26