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
#ifndef ConversionException_CLASS
00028
#define ConversionException_CLASS
00029
00030
#include <string>
00031
using std::string;
00032
00033
namespace asdm {
00034
00041 class ConversionException {
00042
00043
public:
00047
ConversionException();
00048
00056
ConversionException(string m, string t);
00057
00058
virtual ~
ConversionException();
00059
00063 string
getMessage()
const;
00064
00065
protected:
00066
00067 string message;
00068 string tableName;
00069
00070 };
00071
00072 inline ConversionException::ConversionException() :
00073 message(
""), tableName(
"") {
00074 ;
00075 }
00076
00077 inline ConversionException::ConversionException (string m, string t) :
00078 message(m), tableName(t) {
00079 }
00080
00081
inline ConversionException::~ConversionException() { ; }
00082
00083 inline string ConversionException::getMessage()
const {
00084
return "ConversionException : cannot convert table " + tableName +
". " + message;
00085 }
00086
00087 }
00088
00089
#endif