From 06b5e2e202d6bd00cd7caeda0479a73265370087 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 1 Mar 2015 10:22:38 -0600 Subject: [PATCH] Provide ExcDivideByZero with some explanatory text. --- include/deal.II/base/exceptions.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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. -- 2.39.5