]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Implement standard exception for missing user implementation
authorStefano Zampini <stefano.zampini@gmail.com>
Tue, 17 Jan 2023 07:40:40 +0000 (10:40 +0300)
committerStefano Zampini <stefano.zampini@gmail.com>
Sun, 22 Jan 2023 14:07:09 +0000 (17:07 +0300)
include/deal.II/base/exceptions.h

index 40b288281daf3f21812b0cf8dcb2426c974ca5db..b0648add4ad39d0011b680b714f91657633621e3 100644 (file)
@@ -851,6 +851,14 @@ namespace StandardExceptions
     "been called; if the answer is 'yes', then you need to "
     "implement the missing override in your class.");
 
+  /**
+   * This exception is used if some user function is not provided.
+   */
+  DeclException1(ExcFunctionNotProvided,
+                 std::string,
+                 << "Please provide an implementation for the function \""
+                 << arg1 << "\"");
+
   /**
    * This exception is used if some object is found uninitialized.
    */

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.