From 6f20682f0a6d33486f4aabaa12ab8bcac826b590 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 25 Aug 2016 13:51:48 -0600 Subject: [PATCH] Provide more explanation for a number of exceptions. --- include/deal.II/base/exceptions.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 507fecd3d6..63b338f265 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -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."); //@} -- 2.39.5