mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
zkutil: Inherited KeeperException from DB::Exception. [#METR-10202]
This commit is contained in:
parent
f885e8680b
commit
91f6a73617
@ -1,15 +1,15 @@
|
||||
#pragma once
|
||||
#include <Poco/Exception.h>
|
||||
#include <statdaemons/Exception.h>
|
||||
#include <zkutil/Types.h>
|
||||
|
||||
|
||||
namespace zkutil
|
||||
{
|
||||
|
||||
class KeeperException : public Poco::Exception
|
||||
class KeeperException : public DB::Exception
|
||||
{
|
||||
public:
|
||||
KeeperException(const std::string & msg) : Poco::Exception(msg), code(ReturnCode::Ok) {}
|
||||
KeeperException(const std::string & msg) : DB::Exception(msg), code(ReturnCode::Ok) {}
|
||||
KeeperException(const std::string & msg, ReturnCode::type code_)
|
||||
: Poco::Exception(msg + " (" + ReturnCode::toString(code_) + ")"), code(code_) {}
|
||||
KeeperException(ReturnCode::type code_)
|
||||
|
Loading…
Reference in New Issue
Block a user