notImplementedException.h 570 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef SRC_MODEL_EXCEPTION_NOT_IMPLEMENTED_EXCEPTION_H_
#define SRC_MODEL_EXCEPTION_NOT_IMPLEMENTED_EXCEPTION_H_

#include <exception>
#include <string>

class NotImplementedException : public std::exception
{
    private:
        std::string _msg;

    public:
        NotImplementedException(std::string funcName)
        {
            this->_msg = "Function "+funcName+" not yet implemented.";
        }
        virtual const char* what() const throw()
        {
            return this->_msg.c_str();
}
};

#endif // SRC_MODEL_EXCEPTION_NOT_IMPLEMENTED_EXCEPTION_H_