]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Improve error handling.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Nov 1998 13:18:54 +0000 (13:18 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Nov 1998 13:18:54 +0000 (13:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@671 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_io.h
deal.II/deal.II/source/numerics/data_io.cc

index fab3fdbbc7c5d88a43f592c37ad4d703c142a601..17bc78528557ae4a82805f71bd25a5a228a4ab3f 100644 (file)
@@ -150,6 +150,14 @@ class DataIn {
                                     /**
                                      * Exception
                                      */
+    DeclException1 (ExcUnknownIdentifier,
+                   string,
+                   << "The identifier <" << arg1 << "> as name of a "
+                   << "part in an UCD input file is unknown or the "
+                   << "respective input routine is not implemented.");
+                                    /**
+                                     * Exception
+                                     */
     DeclException0 (ExcNoTriangulationSelected);
                                     /**
                                      * Exception
index 6ef7ea5b7611f31f6655d99e0cf5c7dc16699345..0c2a00e2b59d6e97c39e918b998ba9ffa568d6f0 100644 (file)
@@ -158,7 +158,7 @@ void DataIn<dim>::read_ucd (istream &in) {
          }
        else
                                           // cannot read this
-         Assert (false, ExcNotImplemented());
+         Assert (false, ExcUnknownIdentifier(cell_type));
     };
 
                                   // check that no forbidden arrays are used

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.