exceptions & bugfixes

This commit is contained in:
doitux
2007-09-29 00:08:19 +00:00
parent eec7e6c097
commit fc435f2769
15 changed files with 260 additions and 120 deletions
+3 -9
View File
@@ -21,21 +21,15 @@
#ifndef _NETEXCEPTION_H_
#define _NETEXCEPTION_H_
#include "pokerthexception.h"
class NetException
class NetException : public PokerTHException
{
public:
NetException(int errorId, int osErrorCode)
: m_errorId(errorId), m_osErrorCode(osErrorCode) {}
: PokerTHException(errorId, osErrorCode) {}
virtual ~NetException();
int GetErrorId() const {return m_errorId;}
int GetOsErrorCode() const {return m_osErrorCode;}
private:
int m_errorId;
int m_osErrorCode;
};
#endif