l3.xsock/lib/xsock_errors.h

36 lines
1.3 KiB
C
Raw Normal View History

2006-01-10 10:42:33 +00:00
#ifndef _XSOCK_ERRORS
#define _XSOCK_ERRORS 1
2006-01-10 12:16:59 +00:00
#include <exception>
2006-01-10 10:42:33 +00:00
namespace XSockExcept {
2006-01-10 12:16:59 +00:00
class eXSockExcept : public std::exception { };
class eInvalidSocket : public eXSockExcept { };
class eUnknownProtocol : public eXSockExcept { };
class eUnableToListen : public eXSockExcept { };
class eUnableToConnect : public eXSockExcept { };
class eUnableToAccept : public eXSockExcept { };
class eUnableToBind : public eXSockExcept { };
class eSockUnreadable : public eXSockExcept { };
class eSockUnwritable : public eXSockExcept { };
class eUnknownXSockRole : public eXSockExcept { };
class eUnableToResolveName : public eXSockExcept { };
class eXSockNotReady : public eXSockExcept { };
class eConnectionClosedByPeer : public eXSockExcept { };
class eDeadLock : public eXSockExcept { };
class eUnableToLock : public eXSockExcept { };
class eUnableToUnlock : public eXSockExcept { };
class eUnableToCloseFile : public eXSockExcept { };
class eUnableToOpenFile : public eXSockExcept { };
class eUnableToStatFile : public eXSockExcept { };
class eUnableToOpen2ndFile : public eXSockExcept { };
class eUnableToCreateFile : public eXSockExcept { };
class eUnableToDeleteFile : public eXSockExcept { };
class eUnableToReadFile : public eXSockExcept { };
class eUnableToWriteFile : public eXSockExcept { };
2006-01-10 10:42:33 +00:00
/* d<>finition des exceptions ici */
}
#endif