00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef IEXCEPTION_H
00020 #define IEXCEPTION_H
00021
00022
00023 #include "smbios/compat.h"
00024
00025 #include <string>
00026 #include <exception>
00027
00028
00029 #include "smbios/types.h"
00030
00031
00032 #include "smbios/config/abi_prefix.hpp"
00033
00034 #define DECLARE_EXCEPTION_EX( excName, namespace, superclass ) \
00035 class excName : public namespace::superclass \
00036 {\
00037 public:\
00038 virtual ~excName() throw() {};\
00039 excName() {};\
00040 }
00041 #define DECLARE_EXCEPTION( excName ) DECLARE_EXCEPTION_EX( excName, smbios, IException )
00042
00043 namespace smbios
00044 {
00046
00048 class IException : public std::exception
00049 {
00050 public:
00051
00052
00053 virtual ~IException() throw() {};
00054 IException() {};
00055 };
00056
00057
00058
00063 DECLARE_EXCEPTION( NotImplemented );
00064
00069 DECLARE_EXCEPTION( InternalError );
00070
00072 DECLARE_EXCEPTION( PermissionException );
00073 }
00074
00075
00076 #include "smbios/config/abi_suffix.hpp"
00077
00078 #endif