00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef FAUDES_EXCEPTION_H
00024 #define FAUDES_EXCEPTION_H
00025
00026 #include "definitions.h"
00027 #include "helper.h"
00028 #include <exception>
00029 #include <string>
00030
00031 namespace faudes {
00032
00105 class Exception : public std::exception {
00106 public:
00119 explicit Exception(const std::string& rFunctionName,
00120 const std::string& rDescription, unsigned int errorId);
00121
00123 virtual ~Exception() throw();
00124
00126 virtual const char* Where() const throw();
00127
00129 virtual const char* What() const throw();
00130
00132 virtual unsigned int Id() const throw();
00133
00134 private:
00136 std::string FunctionName;
00137
00139 std::string Description;
00140
00142 unsigned int ErrorId;
00143 };
00144
00145 }
00146
00147 #endif