00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef EXCEPTION_H
00024
00025 #include "definitions.h"
00026 #include <exception>
00027 #include <string>
00028
00029 namespace faudes {
00030
00101 class Exception : public std::exception {
00102 public:
00115 explicit Exception(const std::string& rFunctionName,
00116 const std::string& rDescription, unsigned int errorId);
00117
00119 virtual ~Exception() throw();
00120
00122 virtual const char* Where() const throw();
00123
00125 virtual const char* What() const throw();
00126
00128 virtual unsigned int Id() const throw();
00129
00130 private:
00132 std::string FunctionName;
00133
00135 std::string Description;
00136
00138 unsigned int ErrorId;
00139 };
00140
00141 }
00142
00143 #define EXCEPTION_H
00144 #endif