From 91ffdc00dbb56279505f38986865b0b2525e9346 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 2 May 2023 17:49:49 -0600 Subject: [PATCH] Introduce an exception to be used by user callbacks. --- include/deal.II/base/exceptions.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 2b9a7c14a1..8a8f817aab 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -1272,6 +1272,19 @@ namespace StandardExceptions const int error_code; }; #endif // DEAL_II_TRILINOS_WITH_SEACAS + + /** + * An exception to be thrown in user call-backs. See the glossary entry + * on user call-back functions for more information. + */ + DeclExceptionMsg( + RecoverableUserCallbackError, + "A user call-back function encountered a recoverable error, " + "but the underlying library that called the call-back did not " + "manage to recover from the error and aborted its operation." + "\n\n" + "See the glossary entry on user call-back functions for more " + "information."); } /*namespace StandardExceptions*/ -- 2.39.5