/[escript]/branches/windows_from_1456_trunk_1522_merged_in/esysUtils/test/EsysExceptionTestCase.cpp
ViewVC logotype

Diff of /branches/windows_from_1456_trunk_1522_merged_in/esysUtils/test/EsysExceptionTestCase.cpp

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

revision 1527 by phornby, Tue Apr 22 06:15:31 2008 UTC revision 1528 by phornby, Tue Apr 29 01:51:01 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       virtual DerivedEx &
44       operator=(const DerivedEx &other) THROW_ANY
45          {
46             Parent::operator=(other);
47             return *this;
48          }
49    
50     /// Return the exception name     /// Return the exception name
51     virtual const string & exceptionName() const     virtual const string & exceptionName() const
52        {        {
# Line 257  void EsysExceptionTestCase::testCase2() Line 264  void EsysExceptionTestCase::testCase2()
264        throw ex4;        throw ex4;
265          }          }
266      catch (exception& e) {      catch (exception& e) {
267        cout << e.what() << endl;            // cout << e.what() << endl;
268              assert(e.what() == string("DerivedException: Exception caught"
269                                        " as std::exception")
270                     );
271      }      }
272      catch (...) {      catch (...) {
273             //             //

Legend:
Removed from v.1527  
changed lines
  Added in v.1528

  ViewVC Help
Powered by ViewVC 1.1.26