Salome HOME
Moved test configuration from CMake variables to a configuration file
[tools/libbatch.git] / src / Core / Batch_GenericException.cxx
index 4303e1c5742881e63f2fe71bdd49299df01e3555..622c8e331047cb57a58cfe0d1b19bb8e93492029 100644 (file)
@@ -20,7 +20,7 @@
 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 /*
- * GenericException.cxx : 
+ * GenericException.cxx :
  *
  * Auteur : Ivan DUTKA-MALEN - EDF R&D
  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
  *
  */
 
+#include <iostream>
 #include "Batch_GenericException.hxx"
+
 using namespace std;
 
 namespace Batch {
 
+// Operator for writing on a stream
+ostream & operator <<(ostream & os, const GenericException & e)
+{
+  return os << e.type << ": " << e.message;
+}
+
 }