From: hartmann Date: Tue, 26 Oct 1999 15:54:19 +0000 (+0000) Subject: Add Exception X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0d409bcb6aea854a10431c312d9c2f2d758782a;p=dealii-svn.git Add Exception git-svn-id: https://svn.dealii.org/trunk@1795 0785d39b-7218-0410-832d-ea1e28bc413d --- 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."); };