M1SeriesException
#ifndef M1SERIESEXCEPTION_H
#define M1SERIESEXCEPTION_H
#include <iostream>
class M1SeriesException : public std::exception
{
public:
M1SeriesException(const std::string& msg):
_Str("M1SeriesException: ")
{
_Str += msg;
}
virtual ~M1SeriesException(void) throw() { }
virtual const char *what(void) const throw() { return _Str.c_str(); }
protected:
std::string _Str;
private:
};
#endif // M1SERIESEXCEPTION_H
#include "M1SeriesException.h"