修了些bug
This commit is contained in:
@@ -11,7 +11,7 @@ private:
|
||||
public:
|
||||
NodeIdOutOfRangeException():message("You input id is out of range"){}
|
||||
NodeIdOutOfRangeException(const std::string& msg) : message(msg) {}
|
||||
NodeIdOutOfRangeException(const std::string& msg,int errCode):message(msg+"Err code: "+std::to_string(errCode)){}
|
||||
NodeIdOutOfRangeException(const std::string& msg,int errCode):message(msg+" Err code: "+std::to_string(errCode)){}
|
||||
|
||||
virtual ~NodeIdOutOfRangeException() noexcept {}
|
||||
virtual const char* what() const noexcept override {
|
||||
|
||||
@@ -12,7 +12,7 @@ private:
|
||||
public:
|
||||
SameNodeConnectException():message("Don't connect same node"){}
|
||||
SameNodeConnectException(const std::string& msg) : message(msg) {}
|
||||
SameNodeConnectException(const std::string& msg,int errCode):message(msg+"Err code: "+std::to_string(errCode)){}
|
||||
SameNodeConnectException(const std::string& msg,int errCode):message(msg+" Err code: "+std::to_string(errCode)){}
|
||||
|
||||
virtual ~SameNodeConnectException() noexcept {}
|
||||
virtual const char* what() const noexcept override {
|
||||
|
||||
Reference in New Issue
Block a user