From: Wolfgang Bangerth Date: Sat, 28 Feb 2015 20:59:44 +0000 (-0600) Subject: Convert ExcInternalError to DeclExceptionMsg. X-Git-Tag: v8.3.0-rc1~403^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19ef13ecdee50f3cda120575817afc0471c7dbfc;p=dealii.git Convert ExcInternalError to DeclExceptionMsg. --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 86aa24c8bf..2daaf4d11f 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -710,7 +710,22 @@ namespace StandardExceptions * cases. These cases will then be trapped sooner or later by the exception, * so that the algorithm can then be fixed for these cases as well. */ - DeclException0 (ExcInternalError); + DeclExceptionMsg (ExcInternalError, + "This exception -- which is used in many places in the " + "library -- usually indicates that some condition which " + "the author of the code thought must be satisfied at a " + "certain point in an algorithm, is not fulfilled. An " + "example would be that the first part of an algorithm " + "sorts elements of an array in ascending order, and " + "a second part of the algorithm later encounters an " + "an element that is not larger than the previous one." + "\n\n" + "There is usually not very much you can do if you " + "encounter such an exception since it indicates an error " + "in deal.II, not in your own program. Try to come up with " + "the smallest possible program that still demonstrates " + "the error and contact the deal.II mailing lists with it " + "to obtain help."); /** * This exception is used in functions that may not be called (i.e. in pure