1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-04-19 21:02:17 +03:00
wsrep-lib/include/wsrep/exception.hpp
2018-06-13 10:18:46 +03:00

40 lines
668 B
C++

//
// Copyright (C) 2018 Codership Oy <info@codership.com>
//
#ifndef WSREP_EXCEPTION_HPP
#define WSREP_EXCEPTION_HPP
#include <stdexcept>
#include <cstdlib>
namespace wsrep
{
class runtime_error : public std::runtime_error
{
public:
runtime_error(const std::string& msg)
: std::runtime_error(msg)
{
// ::abort();
}
};
class not_implemented_error : public std::exception
{
public:
not_implemented_error()
: std::exception()
{
::abort();
}
};
class fatal_error : public std::exception
{
};
}
#endif // WSREP_EXCEPTION_HPP