DriverException

#ifndef DRIVEREXCEPTION_H

#define DRIVEREXCEPTION_H

#include <iostream>

class DriverException : public std::exception

{

    public:

    DriverException(const std::string& msg):_Str("DriverException: ")

    {

      _Str += msg;

    }

    virtual ~DriverException(void) throw() { }

    virtual const char *what() const throw() { return _Str.c_str(); }

    protected:

    private:

    std::string _Str;

};

#endif // DRIVEREXCEPTION_H

#include "DriverException.h"