]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide ExcDivideByZero with some explanatory text.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 1 Mar 2015 16:22:38 +0000 (10:22 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 1 Mar 2015 17:07:26 +0000 (11:07 -0600)
include/deal.II/base/exceptions.h

index 2daaf4d11f5b87c4718eb89fcca96bcabc6b1165..0a7dcdca411544e550aef3c3d07bec40037aa014 100644 (file)
@@ -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.

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.