Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

Exception.h

Go to the documentation of this file.
00001 /*
00002  * $Id: Exception.h,v 1.6 2002/08/05 18:56:23 mindstorm2600 Exp $
00003  *
00004  * This is the main class for exception treatment, this section
00005  * is going to be completely rewritten
00006  *
00007  */
00008 #ifndef __CLAW_EXCEPTION_H__
00009 #define __CLAW_EXCEPTION_H__
00010 #include<Object.h>
00011 
00012 namespace clawsoft{
00013 
00017 class Exception:public Object{
00018         private:
00019         protected:
00023                 char *description;
00024         public:
00028                 Exception();
00033                 Exception(const char *d);
00037                 const char *toString();
00038 };
00039 
00044 class ArrayOutOfBoundsException:public Exception{
00045         public:
00049                 ArrayOutOfBoundsException();
00050 };
00051 
00056 class NullPointerException:public Exception{
00057         public:
00061                 NullPointerException();
00062 };
00063 
00068 class NumberException:public Exception{
00069         public:
00073                 NumberException();
00074 };
00075 
00080 class ElementNotFoundException:public Exception{
00081         public:
00085                 ElementNotFoundException();
00086 };
00087 
00088 
00093 class NoMoreTokensException:public Exception{
00094         public:
00098                 NoMoreTokensException();
00099 };
00100 
00101 
00103 
00107 class MutexException:public Exception{
00108         public:
00112                 MutexException();
00113 };
00114 
00118 class UnableToLockMutexException:public MutexException{
00119         public:
00123                 UnableToLockMutexException();
00124 };
00125 
00129 class UnableToUnlockMutexException:public MutexException{
00130         public:
00134                 UnableToUnlockMutexException();
00135 };
00136 
00137 
00139 
00141 class NetworkException:public Exception{
00142         public:
00146                 NetworkException();
00147 };
00148 
00150 class ConnectionTimeoutException:public NetworkException{
00151         public:
00155                 ConnectionTimeoutException();
00156 };
00157 
00160 class ConnectionRefusedException:public NetworkException{
00161         public:
00165                 ConnectionRefusedException();
00166 };
00167 
00170 class NetworkUnreachableException:public NetworkException{
00171         public:
00175                 NetworkUnreachableException();
00176 };
00177 
00180 class SocketAlreadyBoundedException:public NetworkException{
00181         public:
00182                 SocketAlreadyBoundedException();
00183 };
00184 
00186 class SocketAlreadyUsedException:public NetworkException{
00187         public:
00188                 SocketAlreadyUsedException();
00189 };
00190 
00192 
00195 class IOException:public Exception{
00196         public:
00200                 IOException();
00201 };
00202 
00208 class BrokenPipeException:public IOException{
00209         public:
00213                 BrokenPipeException();
00214 };
00215 
00219 class ProcOutOfFileDescriptorsException:public IOException{
00220         public:
00224                 ProcOutOfFileDescriptorsException();
00225 };
00226 
00230 class SysOutOfFileDescriptorsException:public IOException{
00231         public:
00235                 SysOutOfFileDescriptorsException();
00236 };
00237 
00242 class SocketUnableToWriteException:public IOException{
00243         public:
00247                 SocketUnableToWriteException();
00248 };
00249 
00254 class SocketUnableToReadException:public IOException{
00255         public:
00259                 SocketUnableToReadException();
00260 };
00261 
00262 
00264 
00265 
00266 
00270 class DSOException:public IOException{
00271         public:
00275                 DSOException(const char *msg = 0);
00276 };
00277 
00278 class CantLoadDSOException:public DSOException{
00279         public:
00283                 CantLoadDSOException();
00284 
00285 };
00286 
00287 class CantUnloadDSOException:public DSOException{
00288         public:
00292                 CantUnloadDSOException();
00293 
00294 };
00295 
00296 class DSOSymbolException:public DSOException{
00297         public:
00301                 DSOSymbolException();
00302 };
00303 
00304 };
00305 #endif
00306 

Powered by:

SourceForge Logo