From: Ralf Hartmann Date: Tue, 26 Oct 1999 15:54:19 +0000 (+0000) Subject: Add Exception X-Git-Tag: v8.0.0~21555 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1326083936629b8fb07e3bb292de2dca0cf2e24c;p=dealii.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."); };