From 7debe70d8472be2400cce31f5a826719317023b3 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Fri, 8 Apr 2005 09:44:05 +0000 Subject: [PATCH] Exception for disabled features git-svn-id: https://svn.dealii.org/trunk@10428 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/exceptions.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deal.II/base/include/base/exceptions.h b/deal.II/base/include/base/exceptions.h index 45d73e90d2..7588659577 100644 --- a/deal.II/base/include/base/exceptions.h +++ b/deal.II/base/include/base/exceptions.h @@ -1077,6 +1077,16 @@ namespace StandardExceptions * if it is actually included. */ DeclException0 (ExcNeedsPETSC); + /** + * A configuration option disabled + * this feature. In order to use + * it, you must reconfigure and + * recompile the libraries. + */ + DeclException1 (ExcDisabled, char*, + << "This feature was disabled by the " + "configuration option --disable-" + << arg1 << ". Reconfigure to use it!"); //@} } -- 2.39.5