mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-27 09:01:50 +03:00
Moved public API includes under include/trrep
This commit is contained in:
36
include/trrep/exception.hpp
Normal file
36
include/trrep/exception.hpp
Normal file
@ -0,0 +1,36 @@
|
||||
//
|
||||
// Copyright (C) 2018 Codership Oy <info@codership.com>
|
||||
//
|
||||
|
||||
#ifndef TRREP_EXCEPTION_HPP
|
||||
#define TRREP_EXCEPTION_HPP
|
||||
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace trrep
|
||||
{
|
||||
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();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif // TRREP_EXCEPTION_HPP
|
Reference in New Issue
Block a user