home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xsemex.h < prev    next >
C/C++ Source or Header  |  1997-04-03  |  1KB  |  25 lines

  1. #ifndef __OOL_XSEMEXCEPT_H__
  2. #define __OOL_XSEMEXCEPT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XSemaphoreException                   */
  8. /*                       derived from: XException                            */
  9. /*                        last update: 3/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13. #include "xexcept.h"
  14.  
  15. class _export_ XSemaphoreException: public XException
  16. {
  17.     public:
  18.         XSemaphoreException(char * errorMsg, LONG errorCode, LONG lineNumber=0, char * fileName=""):XException(errorMsg, errorCode, lineNumber, fileName)
  19.             {;}
  20. };
  21.  
  22. #define OOLSemThrow(a, b) throw( XSemaphoreException(a, b, __LINE__, __FILE__))
  23.  
  24. #endif
  25.