Dear all,
I want to catch exceptions thrown by fePointEval.reinit(...),
where fePointEval is an object of type FEPointEvaluation.
Here is a snippet of code demonstrating the issue:
try
{
fePointEval.reinit(...);
}
catch(dealii::ExceptionBase & exception)
{
std::cout<<"exception is catched"<<std::endl;
throw MyClass(...);
}
where MyClass is derived from dealii::ExceptionBase.
The exception ExcDereferenceInvalidCell is definitely thrown because the
message
" You tried to dereference a cell iterator.... "
is printed on my screen, if I try to evaluate the function attached to the
FEPointEvaluation
object outside its domain.
I am also convinced that the exception is not catched by the code above,
because the
dummy print statement in the catch block is not printed on my screen.
According to the documentation (v9.3.2), ExcDereferenceInvalidCell throws
an exception
of type dealii::ExceptionBase, i.e., I would have expected that my snippet
above catches it.
What do I miss here?
Best,
Simon
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/5b64a37f-ff2e-4de3-97c3-23da8d043a05n%40googlegroups.com.