]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Exception for disabled features
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 8 Apr 2005 09:44:05 +0000 (09:44 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 8 Apr 2005 09:44:05 +0000 (09:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@10428 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/exceptions.h

index 45d73e90d2b00302fcb90cb6774bc659dc1c3a6f..7588659577665b70fd938e8aacd7e2fe9d688a34 100644 (file)
@@ -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!");
   
 //@}
 }

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.