From acb8f96f179c32f64f7eee5e736ec0f150ef5fb2 Mon Sep 17 00:00:00 2001 From: Stefano Zampini Date: Tue, 17 Jan 2023 10:40:40 +0300 Subject: [PATCH] Implement standard exception for missing user implementation --- include/deal.II/base/exceptions.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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. */ -- 2.39.5