1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
2019-01-21 16:41:04 -06:00

45 lines
741 B
C++

#ifndef _SMEXECEPTIONS_H_
#define _SMEXECEPTIONS_H_
#include <exception>
namespace idbdatafile
{
class NotImplementedYet : public std::exception
{
public:
NotImplementedYet(const std::string &s);
};
class FailedToSend : public std::runtime_error
{
public:
FailedToSend(const std::string &s);
};
class FailedToRecv : public std::runtime_error
{
public:
FailedToRecv(const std::string &s);
};
NotImplementedYet::NotImplementedYet(const std::string &s) :
std::exception(s + "() isn't implemented yet.")
{
}
FailedToSend::FailedToSend(const std::string &s) :
std::runtime_error(s)
{
}
FailedToRecv::FailedToRecv(const std::string &s) :
std::runtime_error(s)
{
}
}
#endif