From: Stefano Zampini Date: Tue, 17 Jan 2023 07:40:40 +0000 (+0300) Subject: Implement standard exception for missing user implementation X-Git-Tag: v9.5.0-rc1~601^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acb8f96f179c32f64f7eee5e736ec0f150ef5fb2;p=dealii.git Implement standard exception for missing user implementation --- diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 40b288281d..b0648add4a 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -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. */