00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CALCIUM_EXCEPTION_HXX
00030 #define CALCIUM_EXCEPTION_HXX
00031
00032 #include "DSC_Exception.hxx"
00033 #include "CalciumTypes.hxx"
00034 #include <string>
00035
00036 struct CalciumException : public DSC_Exception {
00037
00038 CalciumException( const CalciumTypes::InfoType info,
00039 const std::string & text,
00040 const char *fileName,
00041 const unsigned int lineNumber,
00042 const char *funcName):
00043 DSC_Exception(text,fileName,lineNumber,funcName),
00044 _info(info),_exceptionName("CalciumException")
00045 {};
00046
00047
00048 CalciumException( const CalciumTypes::InfoType info,
00049 const std::string & text ):
00050 DSC_Exception(text),_info(info),_exceptionName("CalciumException")
00051 {};
00052
00053 CalciumException(CalciumTypes::InfoType info, const DSC_Exception & ex ):
00054 DSC_Exception(ex),_info(info),_exceptionName("CalciumException")
00055 {};
00056
00057 virtual ~CalciumException() throw() {};
00058 CalciumTypes::InfoType getInfo() const { return _info;}
00059 void setInfo(CalciumTypes::InfoType info) {_info=info;}
00060 virtual const std::string & getExceptionName() const {return _exceptionName;};
00061
00062 protected:
00063 CalciumTypes::InfoType _info;
00064 std::string _exceptionName;
00065 };
00066
00067
00068 #endif