00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "exception.hpp"
00011 #include <sstream>
00012
00013 using namespace std;
00014
00019 Exception::Exception( const std::string &error )
00020 {
00021 ErrorMsg = error;
00022 }
00023
00025
00033 Exception::Exception( const char *file, int line, const std::string &error )
00034 {
00035 stringstream ss;
00036 ss << file << ":" << line << " " << error;
00037 ErrorMsg = ss.str();
00038 }
00039
00040
00044 Exception::~Exception()
00045 {
00046 }