home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / exceptns / newexcp / custexcp.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  808 b   |  33 lines

  1. #ifndef _CUSTEXCP_
  2. #define _CUSTEXCP_
  3. //************************************************************
  4. // Error Handling - New Exception Class
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //************************************************************
  10. #include <iexcbase.hpp>
  11. #include <ibase.hpp>
  12.  
  13. class CustomException : public IException
  14. {
  15. public:
  16.  
  17.   CustomException ( const char*   errorText,
  18.                     unsigned long errorId = 0,
  19.                     Severity      sev = unrecoverable );
  20.  
  21. virtual
  22.  ~CustomException ( );
  23.  
  24.   CustomException ( const CustomException& excp);
  25.  
  26. virtual const char
  27.  *name ( ) const;
  28.  
  29. private:
  30. operator = ( const CustomException& );
  31. };
  32. #endif // _CUSTEXCP_
  33.