]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkException.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkException.h
index 9c5c6ae45723c10543dff733af4a669487611e76..96e04a7c84da457dcd1abf2cf718d2f49606520a 100644 (file)
@@ -3,8 +3,8 @@
   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
@@ -46,10 +46,10 @@ namespace bbtk
   {
   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() {}
@@ -59,15 +59,15 @@ namespace bbtk
       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;
   };