<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hello,<br></div><div><br></div><div>I need to call several functions from Petsc in a C++ code.<br></div><div>I would like to handle manage errors from Petsc with exceptions.<br></div><div><br></div><div>In Petsc's documentation, I found that there exists a macro to do that : CHKERRXX.<br></div><div><br></div><div>How does it work?<br></div><div>Which kind of exception does it throw in case of failure?<br></div><div>Do you inherit from std::exception?<br></div><div>Is there an exception for each error code?<br></div><div><br></div><div>Best,<br></div><div><br></div><div>Cédric<br></div><div><br></div></div></body></html>