MicrostrainException.hpp
Go to the documentation of this file.
00001 #ifndef MICROSTRAINEXCEPTION_HPP_
00002 #define MICROSTRAINEXCEPTION_HPP_
00003 /*
00004  * MicrostrainException.hpp
00005  *
00006  *  Created on: May 8, 2011
00007  *      Author: dnad
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 /* MICROSTRAINEXCEPTION_HPP_ */
00062 #endif


acoustic_vr
Author(s):
autogenerated on Fri Feb 7 2014 11:37:09