Program: bbtk
Module: $RCSfile: bbtkException.h,v $
Language: C++
- Date: $Date: 2008/01/22 15:02:00 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/03/21 14:59:39 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
public:
Exception(const std::string& object,
- const std::string& file,
+ const std::string& source_file,
const std::string& message) throw()
: mObject(object),
- mFile(file),
+ mSourceFile(source_file),
mMessage(message)
{}
~Exception() throw() {}
int lev = bbtk::MessageManager::GetMessageLevel("Error");
if (lev > 0) {
std::cerr << "* OBJECT : " <<mObject<<std::endl;
- std::cerr << "* FILE : " <<mFile<<std::endl;
+ std::cerr << "* FILE : " <<mSourceFile<<std::endl;
}
}
const std::string& GetObject() const { return mObject; }
- const std::string& GetFile() const { return mFile; }
+ const std::string& GetSourceFile() const { return mSourceFile; }
const std::string& GetMessage() const { return mMessage; }
private:
std::string mObject;
- std::string mFile;
+ std::string mSourceFile;
std::string mMessage;
};