From f86b7f8e9591a7ded62768afc040baea89054703 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 25 May 2004 08:20:07 +0000 Subject: [PATCH] new exception git-svn-id: https://svn.dealii.org/trunk@9309 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/exceptions.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/deal.II/base/include/base/exceptions.h b/deal.II/base/include/base/exceptions.h index c9dca52ff5..b01cf5d72e 100644 --- a/deal.II/base/include/base/exceptions.h +++ b/deal.II/base/include/base/exceptions.h @@ -926,7 +926,18 @@ namespace StandardExceptions DeclException3 (ExcIndexRange, int, int, int, << "Index " << arg1 << " is not in [" << arg2 << "," << arg3 << "["); - + + /** + * This exception indicates that + * the first argument should be an + * integer multiple of the second, + * but is not. + */ + DeclException2 (ExcNotMultiple, int, int, + << "Division " << arg1 + << " by " << arg2 + << " has remainder different from zero"); + /** * This exception is thrown if the * iterator you incremented or -- 2.39.5