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

BPExceptions.h

Go to the documentation of this file.
00001 00030 #ifndef BPEXCEPTIONS_H 00031 #define BPEXCEPTIONS_H 00032 00033 #include <string> 00034 #include <stdexcept> 00035 00036 namespace BoilerPlate 00037 { 00038 00048 class IllegalStateException: public std::exception 00049 { 00050 public: 00055 IllegalStateException(std::string theMsg) : msg(theMsg) {}; 00056 00061 virtual const char* what() const throw() 00062 { 00063 return(msg.c_str()); 00064 }; 00066 virtual ~IllegalStateException() throw() {}; 00067 00068 private: 00069 const std::string msg; 00070 }; 00071 00072 }; 00073 00074 #endif