From: Matthias Maier Date: Wed, 17 Jul 2024 13:19:34 +0000 (-0500) Subject: ParameterHandler/ParameterAcceptor: do not use PathSearch::ExcFileNotFound X-Git-Tag: v9.6.0-rc1~84^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b15b8530f3e06b350f5409315e63be7d1094b05;p=dealii.git ParameterHandler/ParameterAcceptor: do not use PathSearch::ExcFileNotFound --- diff --git a/source/base/parameter_acceptor.cc b/source/base/parameter_acceptor.cc index c00a0d9155..371134a25b 100644 --- a/source/base/parameter_acceptor.cc +++ b/source/base/parameter_acceptor.cc @@ -91,7 +91,7 @@ ParameterAcceptor::initialize( { prm.parse_input(filename); } - catch (const dealii::PathSearch::ExcFileNotFound &) + catch (const dealii::ExcFileNotOpen &) { prm.print_parameters(filename, output_style_for_filename); AssertThrow(false, diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index a5a6317bef..189910f9fe 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -569,7 +569,7 @@ ParameterHandler::parse_input(const std::string &filename, const bool assert_mandatory_entries_are_found) { std::ifstream is(filename); - AssertThrow(is, PathSearch::ExcFileNotFound(filename, "ParameterHandler")); + AssertThrow(is, ExcFileNotOpen(filename)); std::string file_ending = filename.substr(filename.find_last_of('.') + 1); boost::algorithm::to_lower(file_ending);