From 9b1ebcf41845d20dcd6a9e226c68c05da6e6c323 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 25 Nov 1998 13:18:54 +0000 Subject: [PATCH] Improve error handling. git-svn-id: https://svn.dealii.org/trunk@671 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/numerics/data_io.h | 8 ++++++++ deal.II/deal.II/source/numerics/data_io.cc | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/include/numerics/data_io.h b/deal.II/deal.II/include/numerics/data_io.h index fab3fdbbc7..17bc785285 100644 --- a/deal.II/deal.II/include/numerics/data_io.h +++ b/deal.II/deal.II/include/numerics/data_io.h @@ -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 diff --git a/deal.II/deal.II/source/numerics/data_io.cc b/deal.II/deal.II/source/numerics/data_io.cc index 6ef7ea5b76..0c2a00e2b5 100644 --- a/deal.II/deal.II/source/numerics/data_io.cc +++ b/deal.II/deal.II/source/numerics/data_io.cc @@ -158,7 +158,7 @@ void DataIn::read_ucd (istream &in) { } else // cannot read this - Assert (false, ExcNotImplemented()); + Assert (false, ExcUnknownIdentifier(cell_type)); }; // check that no forbidden arrays are used -- 2.39.5