00001 //******************************************************************** 00002 //*** Exceptions/Exception.hh 00003 //*** Copyright (c) 2001-2006 by Markus Winand <mws@fatalmind.com> 00004 //*** $Id: Exception.hh,v 1.8 2006-11-19 19:12:29 mws Exp $ 00005 //******************************************************************** 00006 00007 #ifndef INCLUDED_EXCEPTIONS_HH 00008 #define INCLUDED_EXCEPTIONS_HH 00009 00010 #include <string> 00011 00012 namespace fatalmind { 00013 00014 class Exception { 00015 public: 00016 Exception(); 00017 Exception(const std::string&); 00018 virtual const std::string message() const throw(); 00019 virtual ~Exception(); 00020 protected: 00021 virtual void setMessage(const std::string&); 00022 private: 00023 std::string _message; 00024 }; 00025 } 00026 #endif