DatastructsException.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (C) 2005-2006 Rational Discovery LLC
00003 //
00004 //  @@ All Rights Reserved @@
00005 //
00006 
00007 #ifndef _DATASTRUCTS_EXCEPTION_H_20050126
00008 #define _DATASTRUCTS_EXCEPTION_H_20050126
00009 
00010 class DatastructsException : public std::exception {
00011  public:
00012   //! construct with an error message
00013   DatastructsException(const char *msg) : _msg(msg) {};
00014   //! construct with an error message
00015   DatastructsException(const std::string msg) : _msg(msg) {};
00016   //! get the error message
00017   const char *message () const { return _msg.c_str(); };
00018   ~DatastructsException () throw () {};
00019   private:
00020   std::string _msg;
00021 };
00022 
00023 #endif

Generated on Fri Apr 3 06:03:01 2009 for RDCode by  doxygen 1.5.6