mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-06-16 02:01:44 +03:00
Added runtime_error overload with const char* argument
Needed to add new overload to get code compiled with AppleClang 10.0.
This commit is contained in:
@ -30,6 +30,15 @@ namespace wsrep
|
|||||||
class runtime_error : public std::runtime_error
|
class runtime_error : public std::runtime_error
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
runtime_error(const char* msg)
|
||||||
|
: std::runtime_error(msg)
|
||||||
|
{
|
||||||
|
if (abort_on_exception)
|
||||||
|
{
|
||||||
|
::abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
runtime_error(const std::string& msg)
|
runtime_error(const std::string& msg)
|
||||||
: std::runtime_error(msg)
|
: std::runtime_error(msg)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user