]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Suppression of Exception print on instanciation.
authorageay <ageay>
Mon, 13 Feb 2012 11:38:25 +0000 (11:38 +0000)
committerageay <ageay>
Mon, 13 Feb 2012 11:38:25 +0000 (11:38 +0000)
src/INTERP_KERNEL/Bases/InterpKernelException.cxx
src/MEDCoupling_Swig/MEDCoupling.i

index 6bb9285f55099b90b1b9ce3a54554efb85316ee9..8f5b22546181c61432f27a2561a9a21189b4a60d 100644 (file)
 
 #include "InterpKernelException.hxx"
 
-#include <iostream>
-
 INTERP_KERNEL::Exception::Exception(const char *reason):_reason(reason)
 {
-  std::cerr << "AN INTERP_KERNEL::EXCEPTION HAS BEEN THROWN : " << reason << "**********" << std::endl;
 }
 
 INTERP_KERNEL::Exception::Exception(const char *reason, const char *file, int line):_reason(reason)
index 15a50a65f59eca0c2c7928a87ca7c972a84b8138..2c0366dac855fbe9afd287acead0dadbcb4af3e2 100644 (file)
@@ -314,6 +314,13 @@ namespace INTERP_KERNEL
     Exception(const char* what);
     ~Exception() throw ();
     const char *what() const throw ();
+    %extend
+    {
+      std::string __str__() const
+        {
+          return std::string(self->what());
+        }
+    }
   };
 }