mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
2c2d75cceb
* Don't allow exceptions without code #3633 * Don't allow exceptions without code #3633
23 lines
495 B
C++
23 lines
495 B
C++
#pragma once
|
|
|
|
#include <Common/Exception.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class NetException : public Exception
|
|
{
|
|
public:
|
|
NetException(const std::string & msg, int code) : Exception(msg, code) {}
|
|
|
|
NetException * clone() const override { return new NetException(*this); }
|
|
void rethrow() const override { throw *this; }
|
|
|
|
private:
|
|
const char * name() const throw() override { return "DB::NetException"; }
|
|
const char * className() const throw() override { return "DB::NetException"; }
|
|
};
|
|
|
|
}
|