home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ocl150a.zip / OCL / Samples / GTakPM / Source / GTPMException.hpp < prev    next >
C/C++ Source or Header  |  1996-08-12  |  1KB  |  53 lines

  1. // GTakPM
  2. // (c) Benjamin Stein 1994
  3. // All Rights Reserved
  4. // GTPMException.hpp
  5.  
  6. // $Header: W:/Projects/OCL/Samples/GTakPM/Source/rcs/GTPMException.hpp 1.50 1996/08/11 23:48:07 B.STEIN Release $
  7.  
  8. #ifndef GTPMEXCEPTION_HPP_INCLUDED
  9.   #define GTPMEXCEPTION_HPP_INCLUDED
  10.  
  11.  
  12. #ifndef GTAKPM_HPP_INCLUDED
  13.   #include "..\Source\GTakPM.hpp"
  14. #endif
  15.  
  16.  
  17.  
  18. class GTPMException : public OPMException
  19. {
  20.  public:
  21.       GTPMException  (const ULONG errResource,
  22.                       const ULONG severity = OException::recoverable);
  23.    virtual
  24.       ~GTPMException ();
  25.  
  26.    virtual  
  27.       PSZ isOfType   () const 
  28.       { return("GTPMException"); }
  29. };
  30.  
  31. #define throwGTPM(x) (throw GTPMException(x))
  32.  
  33.  
  34. class SystemHandler : public OXcptPM
  35. {
  36.  public:
  37.      SystemHandler   ();
  38.  
  39.    virtual
  40.      ~SystemHandler  ();
  41.  
  42.    virtual  
  43.       PSZ isOfType   () const 
  44.       { return("SystemHandler"); }
  45.  
  46.    BOOL killTrace    ();
  47.    BOOL trapTrace    ();
  48. };
  49.  
  50. #endif // GTPMEXCEPTION_HPP_INCLUDED
  51.  
  52. // end of source
  53.