From e0d409bcb6aea854a10431c312d9c2f2d758782a Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 26 Oct 1999 15:54:19 +0000 Subject: [PATCH] Add Exception git-svn-id: https://svn.dealii.org/trunk@1795 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/function.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deal.II/base/include/base/function.h b/deal.II/base/include/base/function.h index 11bb0ccf3f..3b24e96c7a 100644 --- a/deal.II/base/include/base/function.h +++ b/deal.II/base/include/base/function.h @@ -229,6 +229,13 @@ class Function : public FunctionTime, int, int, << "The vector has size " << arg1 << " but should have " << arg2 << " elements."); + /** + * Exception + */ + DeclException2 (ExcWrongComponent, + int, int, + << "Component " << arg1 << " does not exist, as the values " + << "of this function have only " << arg2 << " components."); }; -- 2.39.5