home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / exceptns / newexcp / newexcp.cpp < prev   
C/C++ Source or Header  |  1996-10-29  |  605b  |  21 lines

  1. //************************************************************
  2. // Error Handling - New Exception Class
  3. //
  4. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  6. // All Rights Reserved.
  7. //************************************************************
  8. #include <iexcbase.hpp>
  9. #include <itrace.hpp>
  10. #include "custexcp.hpp"
  11.  
  12. void main()
  13. {
  14.   IFUNCTRACE_RUNTIME();
  15.   ITrace::enableTrace();
  16.   ITrace::writeToStandardOutput();
  17.   CustomException exc("Hey dude!  Bet you thought this was a real program!",
  18.                       -1);
  19.   ITHROW(exc);
  20. }
  21.