]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add Exception
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Oct 1999 15:54:19 +0000 (15:54 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Oct 1999 15:54:19 +0000 (15:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@1795 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/function.h

index 11bb0ccf3feebfe03c8c8ab78d2eff2e1a2efe77..3b24e96c7a74a1fab1633793fd27141490c66cc8 100644 (file)
@@ -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.");
 };
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.