From: kanschat Date: Wed, 19 Jul 2006 12:41:50 +0000 (+0000) Subject: drop a line into deallog if continuing after exception X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2dbd14a4cbbbb74f82f72f3444f59291729d3bf;p=dealii-svn.git drop a line into deallog if continuing after exception git-svn-id: https://svn.dealii.org/trunk@13394 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/exceptions.cc b/deal.II/base/source/exceptions.cc index 03d0aafee5..404b91b50a 100644 --- a/deal.II/base/source/exceptions.cc +++ b/deal.II/base/source/exceptions.cc @@ -13,6 +13,7 @@ #include +#include #include #include #include @@ -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; }