echo befehl funktioniert

This commit is contained in:
Tristan Krause 2019-03-26 11:35:20 +01:00
parent a68bb3aecc
commit c108303ba3
9 changed files with 98 additions and 3 deletions

32
drv/driverexception.h Normal file
View file

@ -0,0 +1,32 @@
#ifndef DRIVEREXCEPTION_H
#define DRIVEREXCEPTION_H
#include <exception>
// SOURCE: https://stackoverflow.com/a/8152888
class DriverException: public std::exception
{
public:
explicit DriverException(const char* message) : msg_(message)
{
}
explicit DriverException(const std::string& message) : msg_(message)
{
}
virtual ~DriverException() throw ()
{
}
virtual const char* what() const throw ()
{
return msg_.c_str();
}
protected:
std::string msg_;
};
#endif