Cryptocurrency mining pool written in C++ for speed. Supports Stratum.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
413 B

#ifndef EXCEPTION_H_
#define EXCEPTION_H_
class Exception: public std::exception
{
public:
Exception(const char *text)
{
_msg.assign(text);
}
Exception(std::string text)
{
_msg.assign(text);
}
virtual ~Exception() throw () {}
virtual const char* what() const throw () {
return _msg.c_str();
}
protected:
std::string _msg;
};
#endif