]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide more explanation for a number of exceptions. 3017/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 25 Aug 2016 19:51:48 +0000 (13:51 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 25 Aug 2016 19:51:48 +0000 (13:51 -0600)
include/deal.II/base/exceptions.h

index 507fecd3d653e67c8ec67864267c0ae6fd775424..63b338f265d07caf3f0a58e01054a71266a3c7e1 100644 (file)
@@ -1042,17 +1042,28 @@ namespace StandardExceptions
   /**
    * This function requires support for the LAPACK library.
    */
-  DeclException0 (ExcNeedsLAPACK);
+  DeclExceptionMsg (ExcNeedsLAPACK,
+                    "You are attempting to use functionality that is only available "
+                    "if deal.II was configured to use LAPACK, but cmake did not "
+                    "find a valid LAPACK library.");
 
   /**
    * This function requires support for the NetCDF library.
    */
-  DeclException0 (ExcNeedsNetCDF);
+  DeclExceptionMsg (ExcNeedsNetCDF,
+                    "You are attempting to use functionality that is only available "
+                    "if deal.II was configured to use NetCDF, but cmake did not "
+                    "find a valid NetCDF library.");
 
   /**
    * This function requires support for the FunctionParser library.
    */
-  DeclException0 (ExcNeedsFunctionparser);
+  DeclExceptionMsg (ExcNeedsFunctionparser,
+                    "You are attempting to use functionality that is only available "
+                    "if deal.II was configured to use the function parser which "
+                    "relies on the muparser library, but cmake did not "
+                    "find a valid muparser library on your system and also did "
+                    "not choose the one that comes bundled with deal.II.");
 
 
 //@}

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.