home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / CExep / CExep.h < prev    next >
Encoding:
Text File  |  1997-01-22  |  824 b   |  25 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. // CExep.h                ©1996 Sunbay Development Group. All rights reserved.
  3. // ===========================================================================
  4. // Oct 31,1996
  5.  
  6. #pragma once
  7.  
  8. #include "CExeption.h"
  9.  
  10. class CExep : public CExeption {
  11.         Str255    mFile;
  12.         short    mLine;
  13.     public:
  14.          CExep(void);
  15.          CExep(OSType inType, OSType inCode, char *inFile, short inLine);
  16.         ~CExep();
  17.     protected:
  18.         virtual    void        CastomAlert(LDialogBox *inDialog);
  19.         virtual    StringPtr    ExplaneType(void);
  20.         virtual    StringPtr    ExplaneCode(void);
  21. };
  22.  
  23. #define ResExeption(inType) { if(::ResError() != noErr) throw(CExep(inType, (OSType) ::ResError(), __FILE__, __LINE__)); }
  24. #define Exeption(inType, inCode) { throw(CExep(inType, (OSType) inCode, __FILE__, __LINE__)); }
  25.