Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

exceptions.hh

00001 /*
00002 *  Name:          exceptions.hh
00003 *  Author:        Rafael Jesus Alcantara Perez
00004 *  Contributors:  Francisco Rodrigo Escobedo Robles
00005 *  Summary:       CGIL exceptions
00006 *  Date:          $Date: 2003/10/06 12:45:11 $
00007 *  Revision:      $Revision: 1.2 $
00008 *
00009 *  Copyright (C) 1994-2002  Rafael Jesus Alcantara Perez <rafa@dedalo-ing.com>
00010 *
00011 *  This program is free software; you can redistribute it and/or modify
00012 *  it under the terms of the GNU General Public License as published by
00013 *  the Free Software Foundation; either version 2 of the License, or
00014 *  (at your option) any later version.
00015 *
00016 *  This program is distributed in the hope that it will be useful,
00017 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 *  GNU General Public License for more details.
00020 *
00021 *  You should have received a copy of the GNU General Public License
00022 *  along with this program; if not, write to the Free Software
00023 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00024 *  MA 02111-1307, USA.
00025 */
00026 
00027 #ifndef _MPCL_NET_CGI_EXCEPTIONS__
00028 #define _MPCL_NET_CGI_EXCEPTIONS__
00029 
00030 #include "../../error_exception.hh"
00031 #include "../../exception.hh"
00032 
00033 
00035 namespace mpcl
00036 {
00037 
00039   namespace net
00040   {
00041 
00043     namespace cgi
00044     {
00045 
00047       class TException : public virtual mpcl::TException {};
00048 
00050       class TBadCookieException         :
00051         public virtual mpcl::TException ,
00052         public         TErrorException  ,
00053         public         TException
00054       {
00055 
00056         private:
00057 
00059           static const char*   _pkcSynopsis;
00060 
00061 
00062         public:
00063 
00064           //
00065           //  C O N S T R U C T O R S
00066           //
00067 
00075           TBadCookieException ( const string& rkyRATIONALE  ,
00076                                 const string& rkyFILE_NAME  ,
00077                                 const int     kiLINE_NUMBER )                          :
00078             mpcl::TException (_pkcSynopsis, rkyRATIONALE, rkyFILE_NAME, kiLINE_NUMBER) ,
00079             TErrorException  ()                                                        ,
00080             TException       ()                                                        {}
00081 
00082       };  // class TBadCookieException
00083 
00084 
00086       class TBadFormException           :
00087         public virtual mpcl::TException ,
00088         public         TErrorException  ,
00089         public         TException
00090       {
00091 
00092         private:
00093 
00095           static const char*   _pkcSynopsis;
00096 
00097 
00098         public:
00099 
00100           //
00101           //  C O N S T R U C T O R S
00102           //
00103 
00111           TBadFormException ( const string& rkyRATIONALE  ,
00112                               const string& rkyFILE_NAME  ,
00113                               const int     kiLINE_NUMBER )                            :
00114             mpcl::TException (_pkcSynopsis, rkyRATIONALE, rkyFILE_NAME, kiLINE_NUMBER) ,
00115             TErrorException  ()                                                        ,
00116             TException       ()                                                        {}
00117 
00118       };  // class TBadFormException
00119 
00120 
00122       class TCouldNotBuildException     :
00123         public virtual mpcl::TException ,
00124         public         TErrorException  ,
00125         public         TException
00126       {
00127 
00128         private:
00129 
00131           static const char*   _pkcSynopsis;
00132 
00133 
00134         public:
00135 
00136           //
00137           //  C O N S T R U C T O R S
00138           //
00139 
00147           TCouldNotBuildException ( const string& rkyRATIONALE  ,
00148                                     const string& rkyFILE_NAME  ,
00149                                     const int     kiLINE_NUMBER )                      :
00150             mpcl::TException (_pkcSynopsis, rkyRATIONALE, rkyFILE_NAME, kiLINE_NUMBER) ,
00151             TErrorException  ()                                                        ,
00152             TException       ()                                                        {}
00153 
00154       };  // class TCouldNotBuildException
00155 
00156 
00158       class TVariableNotFoundException  :
00159         public virtual mpcl::TException ,
00160         public         TErrorException  ,
00161         public         TException
00162       {
00163 
00164         private:
00165 
00167           static const char*   _pkcSynopsis;
00168 
00169 
00170         public:
00171 
00172           //
00173           //  C O N S T R U C T O R S
00174           //
00175 
00183           TVariableNotFoundException ( const string& rkyRATIONALE  ,
00184                                        const string& rkyFILE_NAME  ,
00185                                        const int     kiLINE_NUMBER )                   :
00186             mpcl::TException (_pkcSynopsis, rkyRATIONALE, rkyFILE_NAME, kiLINE_NUMBER) ,
00187             TErrorException  ()                                                        ,
00188             TException       ()                                                        {}
00189 
00190       };  // class TVariableNotFoundException
00191 
00192     }  // namespace cgi
00193     
00194   }  // namespace net
00195 
00196 }  // namespace mpcl
00197 
00198 
00199 #endif  // not _MPCL_NET_CGI_EXCEPTIONS__

Generated on Mon Oct 13 02:35:23 2003 for MPCL by doxygen1.2.18