diff options
author | galaxycrab <UgnineSirdis@ydb.tech> | 2023-11-23 11:26:33 +0300 |
---|---|---|
committer | galaxycrab <UgnineSirdis@ydb.tech> | 2023-11-23 12:01:57 +0300 |
commit | 44354d0fc55926c1d4510d1d2c9c9f6a1a5e9300 (patch) | |
tree | cb4d75cd1c6dbc3da0ed927337fd8d1b6ed9da84 /library/cpp/clickhouse/client/exceptions.h | |
parent | 0e69bf615395fdd48ecee032faaec81bc468b0b8 (diff) | |
download | ydb-44354d0fc55926c1d4510d1d2c9c9f6a1a5e9300.tar.gz |
YQ Connector:test INNER JOIN
Diffstat (limited to 'library/cpp/clickhouse/client/exceptions.h')
-rw-r--r-- | library/cpp/clickhouse/client/exceptions.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/library/cpp/clickhouse/client/exceptions.h b/library/cpp/clickhouse/client/exceptions.h new file mode 100644 index 0000000000..d27c5352f9 --- /dev/null +++ b/library/cpp/clickhouse/client/exceptions.h @@ -0,0 +1,27 @@ +#pragma once + +#include "query.h" + +#include <util/generic/yexception.h> + +namespace NClickHouse { + class TServerException: public yexception { + public: + TServerException(std::unique_ptr<TException> e) + : Exception_(std::move(e)) + { + } + + const TException& GetException() const { + return *Exception_; + } + + const char* what() const noexcept override { + return Exception_->DisplayText.c_str(); + } + + private: + std::unique_ptr<TException> Exception_; + }; + +} |