From: Wolfgang Bangerth Date: Sun, 1 Mar 2015 16:22:38 +0000 (-0600) Subject: Provide ExcDivideByZero with some explanatory text. X-Git-Tag: v8.3.0-rc1~396^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06b5e2e202d6bd00cd7caeda0479a73265370087;p=dealii.git Provide ExcDivideByZero with some explanatory text. --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 2daaf4d11f..0a7dcdca41 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -603,13 +603,10 @@ namespace StandardExceptions /** * Exception denoting a division by zero. - * - * @note Unfortunately, automatic detection of division by zero is very - * hardware dependent and requires severe hacking on some architectures. - * Therefore, this exception is only raised if the test is performed - * explicitly. */ - DeclException0 (ExcDivideByZero); + DeclExceptionMsg (ExcDivideByZero, + "A piece of code is attempting a division by zero. This is " + "likely going to lead to results that make no sense."); /** * Exception raised if a number is not finite.