#ifndef _XSOCK_ERRORS #define _XSOCK_ERRORS 1 namespace XSockExcept { class eXSockExcept { }; class eInvalidSocket : eXSockExcept { }; class eUnknownProtocol : eXSockExcept { }; class eUnableToListen : eXSockExcept { }; class eUnableToConnect : eXSockExcept { }; class eUnableToAccept : eXSockExcept { }; class eUnableToBind : eXSockExcept { }; class eSockUnreadable : eXSockExcept { }; class eSockUnwritable : eXSockExcept { }; class eUnknownXSockRole : eXSockExcept { }; class eUnableToResolveName : eXSockExcept { }; class eXSockNotReady : eXSockExcept { }; class eConnectionClosedByPeer : eXSockExcept { }; class eDeadLock : eXSockExcept { }; class eUnableToLock : eXSockExcept { }; class eUnableToUnlock : eXSockExcept { }; class eUnableToCloseFile : eXSockExcept { }; class eUnableToOpenFile : eXSockExcept { }; class eUnableToStatFile : eXSockExcept { }; class eUnableToOpen2ndFile : eXSockExcept { }; class eUnableToCreateFile : eXSockExcept { }; class eUnableToDeleteFile : eXSockExcept { }; class eUnableToReadFile : eXSockExcept { }; class eUnableToWriteFile : eXSockExcept { }; /* définition des exceptions ici */ } #endif