]> Creatis software - clitk.git/blobdiff - common/clitkCommon.cxx
make difference between 2D and 3D with a single slice image (Dim obtained from ITK...
[clitk.git] / common / clitkCommon.cxx
index d3f6016a5c0e16c88dd363cc096e30e5d403d933..7afeb074e4da048bdc4af1a9b6ae0e429c09dcd8 100644 (file)
@@ -240,7 +240,7 @@ void clitk::openFileForReading(std::ifstream & is, const std::string & filename)
 {
   is.open(filename.c_str(), std::ios::in);
   if ( is.fail() ) {
-    itkGenericExceptionMacro(<< "Could not open file (for reading): " << filename);
+    clitkExceptionMacro("Could not open file (for reading): " << filename);
   }
 }
 //--------------------------------------------------------------------
@@ -251,7 +251,7 @@ void clitk::openFileForWriting(std::ofstream & os, const std::string & filename)
 {
   os.open(filename.c_str(), std::ios::out);
   if ( os.fail() ) {
-    itkGenericExceptionMacro(<< "Could not open file (for writing): " << filename);
+    clitkExceptionMacro("Could not open file (for writing): " << filename);
   }
 }
 //--------------------------------------------------------------------