Home C-Bits Package Documentation Project Page

Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ThreadException.h

Go to the documentation of this file.
00001 /* ====================================================================
00002  *              The CBITS Software License, Version 1.0
00003  *
00004  *               Copyright (c) 2002-2003 Bruce Lowery
00005  *                       All rights reserved
00006  *
00007  * Redistribution and use of this software, in source and binary forms, 
00008  * with or without modification, are permitted provided that the above 
00009  * copyright notice, this paragraph, and the following paragraph are 
00010  * retained in each source code file.
00011  *
00012  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
00013  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00014  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00015  * DISCLAIMED.  IN NO EVENT SHALL BRUCE LOWERY OR OTHER CONTRIBUTORS 
00016  * TO THE CBITS LIBRARY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00017  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00018  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
00019  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00020  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00021  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
00022  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00023  * SUCH DAMAGE.
00024  * ====================================================================
00025  */
00026 #ifndef __THREADEXCEPTION_H__
00027 #define __THREADEXCEPTION_H__
00028 
00029 #include <string>
00030 #include <exception>
00031 
00032 
00033 #ifdef BUILD_DLL
00034 #define EXPORT __declspec(dllexport)
00035 #else
00036 #define EXPORT
00037 #endif
00038 
00039 
00040 namespace cbits
00041 {
00042 
00047 class EXPORT ThreadException : public virtual std::exception
00048 {
00049 
00050 public:
00051     inline ThreadException( const char *s ) : std::exception(), msg(s) {}
00052     inline std::string& getMessage() { return msg; }
00053     inline ~ThreadException() throw() {}
00054 
00055 protected:
00056     std::string msg;
00057 };
00058 
00059 };
00060 
00061 #endif
00062 
00063 /*
00064  * $Id: ThreadException.h,v 1.3 2002/10/13 20:12:59 brulow Exp $
00065  *
00066  * History: (Add nothing manually below)
00067  * -----------------------------------------------------------------------
00068  *
00069  * $Log: ThreadException.h,v $
00070  * Revision 1.3  2002/10/13 20:12:59  brulow
00071  * *** empty log message ***
00072  *
00073  * Revision 1.2  2002/10/03 15:09:23  brulow
00074  * Add footer
00075  *
00076  *
00077  */

Generated by
doxygen
Hosted by
SourceForge