ClickHouse/dbms/Common/NetException.h
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

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"; }
};
}