22 lines
331 B
C++
22 lines
331 B
C++
#ifndef SOCKETEXCEPTION
|
|
#define SOCKETEXCEPTION
|
|
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
namespace zutil{
|
|
class SocketException{
|
|
public:
|
|
SocketException(const string &s ) : msg(s) {};
|
|
~SocketException(){};
|
|
|
|
string description() const{
|
|
return msg;
|
|
}
|
|
|
|
private:
|
|
const string msg;
|
|
};
|
|
}
|
|
|
|
#endif
|