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 /* DcExceptionParse.h: interface for the CdcExceptionParse class. */ 00021 00022 /** 00023 * CdcExceptionParse indicates an error in the parsing of a request message from 00024 * the client. 00025 * <p> 00026 * @author Erez Bibi 00027 * @version 1.0 00028 */ 00029 00030 #ifndef __CDC_EXCEPTION_PARSE 00031 #define __CDC_EXCEPTION_PARSE 00032 00033 #include "DcGlobals.h" 00034 #include "DcException.h" 00035 00036 class CdcExceptionParse : public CdcException 00037 { 00038 /* No differant decleration then CdcException. */ 00039 public: 00040 /** 00041 * Constructor with error code, or default constructor. 00042 * <p> 00043 * @param code The error code for this exception (DC_PARSE_EXP 00044 * is the default). 00045 */ 00046 CdcExceptionParse (t_exception_num code = DC_PARSE_EXP); 00047 00048 /** 00049 * Constructor with code and message, or just message. 00050 * <p> 00051 * @param msg The error message for this exception. 00052 * @param code The error code for this exception (DC_PARSE_EXP 00053 * is the default). 00054 */ 00055 CdcExceptionParse (const CdcString& msg, t_exception_num code = DC_PARSE_EXP); 00056 }; 00057 00058 #endif /* __CDC_EXCEPTION_PARSE */