BSUtilitiesError.h

Go to the documentation of this file.
00001 
00007 /* Copyright (C) 2005, Bernd Speiser */
00008 /* This file is part of BSUtilities.
00009 
00010 BSUtilities is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 as published by the Free Software Foundation; either version 2
00013 of the License, or (at your option) any later version.
00014 
00015 BSUtilities is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 GNU General Public License for more details.
00019   
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00023 02111-1307, USA.
00024 */
00025 
00026 #ifndef BSUTILITIES_ERROR_H
00027 #define BSUTILITIES_ERROR_H
00028 
00029 #include <string>
00030 
00031 namespace BSUtilities
00032 {
00033 
00035 
00039 class BSUtilitiesError
00040 {
00041 public:
00042   BSUtilitiesError( const std::string& message )
00043     : _message( message )
00044   {}
00045   virtual ~BSUtilitiesError(){}
00046   
00047   virtual std::string message() const
00048   {
00049     return _message;
00050   }
00051 
00052 
00053 protected:
00054   std::string _message;
00055 
00056 };
00057   
00058 } // end namespace BSUtilities
00059 
00060 #endif // BSUTILITIES_ERROR_H
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 
00071 
00072 
00073 

Generated on Sun Jul 26 16:51:58 2009 for BSUtilities by  doxygen 1.5.3