ConfigException.h

00001 // $Id: ConfigException.h 21 2010-09-05 04:18:17Z cschwarz1 $
00002 
00003 #ifndef BASE_CONFIGEXCEPTION_H
00004 #define BASE_CONFIGEXCEPTION_H
00005 
00006 #include "Exception.h"
00007 
00008 namespace base {
00010 
00014     class PPBASE_EXPORT ConfigException: public Exception {
00015     public:
00017         enum {
00018             errIO = 1,          
00019             errNoSuchVariable,  
00020             errTypeCast         
00021         };
00022 
00024 
00029         ConfigException(int errcode, const char *fmt = NULL, ...)
00030         #ifdef __GNUC__
00031             __attribute__((format(printf, 3, 4)))
00032         #endif
00033         ;
00034 
00036 
00042         ConfigException(int errcode, const Exception &ex, const char *fmt = NULL, ...)
00043         #ifdef __GNUC__
00044             __attribute__((format(printf, 4, 5)))
00045         #endif
00046             ;
00047     };
00048 }
00049 
00050 #endif