]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
drop a line into deallog if continuing after exception
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Jul 2006 12:41:50 +0000 (12:41 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Jul 2006 12:41:50 +0000 (12:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@13394 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/exceptions.cc

index 03d0aafee5e470712d48517fdebd83f11c1ef55d..404b91b50a38cd49cd29022eeaf440658d7ac6fc 100644 (file)
@@ -13,6 +13,7 @@
 
 
 #include <base/exceptions.h>
+#include <base/logstream.h>
 #include <string>
 #include <cstdlib>
 #include <iostream>
@@ -237,6 +238,10 @@ void ExceptionBase::print_exc_data (std::ostream &out) const
       << "The name and call sequence of the exception was:" << std::endl
       << "    " << exc  << std::endl
       << "Additional Information: " << std::endl;
+                                  // Additionally, leave a trace in
+                                  // deallog if we do not stop here
+  if (deal_II_exceptions::abort_on_exception == false)
+    deallog << exc << std::endl;
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.