mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
33 lines
639 B
C++
33 lines
639 B
C++
#pragma once
|
|
|
|
#include <stdexcept>
|
|
#include <string>
|
|
|
|
namespace brynet {
|
|
namespace net {
|
|
|
|
class ConnectException : public std::runtime_error {
|
|
public:
|
|
explicit ConnectException(const std::string &message) :
|
|
std::runtime_error(message) {
|
|
}
|
|
|
|
explicit ConnectException(const char *message) :
|
|
std::runtime_error(message) {
|
|
}
|
|
};
|
|
|
|
class BrynetCommonException : public std::runtime_error {
|
|
public:
|
|
explicit BrynetCommonException(const std::string &message) :
|
|
std::runtime_error(message) {
|
|
}
|
|
|
|
explicit BrynetCommonException(const char *message) :
|
|
std::runtime_error(message) {
|
|
}
|
|
};
|
|
|
|
} // namespace net
|
|
} // namespace brynet
|