Main Page | Class Hierarchy | Class List | File List | Class Members

MyError.hh

00001 /**************************************************************************
00002 **       Title: Base class for all error classes
00003 **    $RCSfile: MyError.hh,v $
00004 **   $Revision: 1.1 $$Name:  $
00005 **       $Date: 2002/10/24 10:11:43 $
00006 **   Copyright: IIF-LMB $Author: pigorsch $
00007 ** Description:
00008 **
00009 **    
00010 **
00011 **-------------------------------------------------------------------------
00012 **
00013 **  $Log: MyError.hh,v $
00014 **  Revision 1.1  2002/10/24 10:11:43  pigorsch
00015 **  *** empty log message ***
00016 **
00017 **  Revision 1.1  2001/04/03 18:44:00  haasdonk
00018 **  second version without STL-components
00019 **
00020 **  Revision 1.2  2001/04/03 15:20:13  haasdonk
00021 **  removed STL-commands and typedefs
00022 **
00023 **  Revision 1.1  2001/04/01 12:11:48  ronneber
00024 **  initial revision
00025 **
00026 **
00027 **************************************************************************/
00028 
00029 #ifndef MY_ERROR_HH
00030 #define MY_ERROR_HH
00031 
00032 #include <string>
00033 
00034 /*======================================================================*/
00043 /*======================================================================*/
00044 class MyError
00045 {
00046 public: 
00047   /*======================================================================*/
00053   /*======================================================================*/
00054   MyError(std::string s)
00055           :_message(s)
00056         {
00057           // nothing to do here
00058         }
00059 
00060   /*======================================================================*/
00067   /*======================================================================*/
00068   const std::string& msg() const
00069         {
00070           return _message;
00071         }
00072   
00073 
00074 private:  
00075   std::string _message; 
00076 };
00077 
00078 #endif
00079 

Generated on Wed May 4 16:19:59 2005 by  doxygen 1.4.2