From: Wolfgang Bangerth Date: Wed, 17 Apr 2013 18:32:47 +0000 (+0000) Subject: Add a note. X-Git-Tag: v8.0.0~672 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e568ae1ca36a8ef900843e4edf710a5ebca636e4;p=dealii.git Add a note. git-svn-id: https://svn.dealii.org/trunk@29319 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/numerics/fe_field_function.h b/deal.II/include/deal.II/numerics/fe_field_function.h index 0bdc9ea9bd..98b7b663c7 100644 --- a/deal.II/include/deal.II/numerics/fe_field_function.h +++ b/deal.II/include/deal.II/numerics/fe_field_function.h @@ -144,7 +144,7 @@ namespace Functions * { * solution_at_origin = solution_function.value (origin); * } - * catch (const typename Functions::FEFieldFunction::ExcPointNotAvailableHere &) + * catch (const typename Functions::FEFieldFunction,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere &) * { * point_found = false; * } @@ -153,6 +153,12 @@ namespace Functions * ...do something...; * @endcode * + * @note To C++, Functions::FEFieldFunction::ExcPointNotAvailableHere + * and Functions::FEFieldFunction,TrilinosWrappers::MPI::Vector>::ExcPointNotAvailableHere + * are distinct types. You need to make sure that the type of the exception you + * catch matches the type of the object that throws it, as shown in + * the example above. + * * @ingroup functions * @author Luca Heltai, 2006, Markus Buerg, 2012, Wolfgang Bangerth, 2013 */ @@ -479,7 +485,7 @@ namespace Functions * Exception */ DeclException0 (ExcPointNotAvailableHere); - + private: /** * Typedef holding the local cell_hint.