Go to the documentation of this file.00001 #ifndef MICROSTRAINEXCEPTION_HPP_
00002 #define MICROSTRAINEXCEPTION_HPP_
00003
00004
00005
00006
00007
00008
00009 #include <string>
00010 #include <stdexcept>
00011
00012 namespace LABUST
00013 {
00014 namespace MICROSTRAIN
00015 {
00023 class MicrostrainException : public std::runtime_error
00024 {
00025 public:
00030 explicit MicrostrainException(const std::string& error_msg) throw();
00034 virtual ~MicrostrainException() throw();
00035
00040 const char* what() const throw();
00041
00046 void append(const std::string& msg){error_msg+=msg;};
00047
00048 private:
00052 std::string error_msg;
00056 MicrostrainException();
00057 };
00058 };
00059 };
00060
00061
00062 #endif