Software for Liquid Argon time projection chambers
The LArSoft error handling policy is to code in a way that allows error information passed up the framework so the people who run the framework can make the decision on what actions to take. LArSoft uses the art::Exception
class to pass error information from algorithm code to the framework. (Note that art::Exception
is defined in canvas
and can therefore be used by gallery and in other art-independent repositories and contexts. See ./canvas/Utilities/Exception.h
) Algorithm code should not catch exceptions. Let the framework deal with it.
There are two general levels of errors recognized within the LArSoft error handling policy:
When exiting a module, an error code should be returned. Pick the error code that is closest. Can add more details in an error message. Whether the error is treated as fatal is up to the framework. For more information please see: