home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xgamexc.h < prev    next >
C/C++ Source or Header  |  1997-08-12  |  1KB  |  32 lines

  1. /*
  2.  * XGame - a game programmer's library for OS/2; XGame is an extension to the OOL.
  3.  * Copyright (C) 1997 by Thomas Bonk (thomas@ghecko.saar.de). All rights reserved.
  4.  * XGameException.hpp - declaration of a exception class
  5.  */
  6. #if !defined( __XGAMEEXCEPTION_HPP__ )
  7. #define __XGAMEEXCEPTION_HPP__
  8.  
  9. #include <xheaders.h>
  10. #include "xexcept.h"
  11.  
  12.  
  13. class _export_ XGameException : public XException
  14. {
  15.         public:
  16.                 // error codes
  17.                 enum {
  18.                         XGERR_OK                  =  0,
  19.                         XGERR_OUT_OF_MEMORY       = -1,
  20.                         XGERR_SCREEN_CAPS         = -2,
  21.                         XGERR_COLOR_DEPTH         = -3,
  22.                         XGERR_BAD_PALFORMAT       = -4,
  23.                         XGERR_BAD_BLITMETHOD      = -5,
  24.                         XGERR_PALETTE             = -6
  25.                 };
  26.  
  27.                 // ctor
  28.                 XGameException( char* msg, LONG code ) : XException( msg, code ) {}
  29. };
  30.  
  31. #endif
  32.