#ifndef SQLERROR_HPP
#define SQLERROR_HPP
#include <exception>
#include <stdexcept>
#include <string>
namespace sqlpp
{
class sqlerror:public std::exception
{
public:
sqlerror(const std::string& code, const std::string& reason);
virtual ~sqlerror()throw();
const char* what()const throw();
private:
std::string _code_and_reason;
};
};
#endif
#define SQLERROR_HPP
#include <exception>
#include <stdexcept>
#include <string>
namespace sqlpp
{
class sqlerror:public std::exception
{
public:
sqlerror(const std::string& code, const std::string& reason);
virtual ~sqlerror()throw();
const char* what()const throw();
private:
std::string _code_and_reason;
};
};
#endif