00001 /* 00002 Copyright 2007 Erez Bibi (erezbibi@users.sourceforge.net) 00003 This file is part of Beesnest. 00004 00005 Beesnest is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 Beesnest is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with Beesnest; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 /* DcExceptionSocket.h: interface for the CdcExceptionSocket class. */ 00021 00022 /** 00023 * CdcExceptionSocet just add the operating system socket error messages to an 00024 * error code. 00025 * <p> 00026 * @author Erez Bibi 00027 * @version 1.0 00028 */ 00029 00030 #ifndef __CDC_EXCEPTION_SOCKET 00031 #define __CDC_EXCEPTION_SOCKET 00032 00033 #include "DcGlobals.h" 00034 #include "DcException.h" 00035 00036 class CdcExceptionSocket : public CdcException 00037 { 00038 public: 00039 /** 00040 * This constructor put a relevant error message to the error code. 00041 */ 00042 CdcExceptionSocket (int code = 0); 00043 00044 /** 00045 * Over write ToStr. 00046 */ 00047 CdcString ToStr () const; 00048 }; 00049 00050 #endif /* __CDC_EXCEPTION_SOCKET */