Hello, 

I need to call several functions from Petsc in a C++ code. 
I would like to handle manage errors from Petsc with exceptions. 

In Petsc's documentation, I found that there exists a macro to do that : 
CHKERRXX. 

How does it work? 
Which kind of exception does it throw in case of failure? 
Do you inherit from std::exception? 
Is there an exception for each error code? 

Best, 

Cédric 

Reply via email to