| Summary: | behaviour of G4Exception | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Florence.Ranjard |
| Component: | global | Assignee: | Makoto.Asai |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | Gabriele.Cosmo |
| Priority: | P2 | ||
| Version: | other | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Florence.Ranjard
2001-01-29 09:20:35 CET
By design G4Exception is a simple function printing some diagnostics and aborting the application when invoked. For reasons mainly related to performance, C++ exception handling is not used in Geant4. However, we recently extended the current mechanism by introducing the capability of handling/customising G4Exceptions by making G4UIManager "state" dependent, therefore allowing users to define the desired application behavior once in 'abort' state, also allowing to print -any- kind of diagnostics or performing 'safe' operations before the actual abortion. The user documentation needs to be updated to reflect these features. Handed this over to Makoto... :) Documents should be added by next public release... Now the user has an UI command (/control/suppressAbortion) to suppress the G4Exception at event loop. Of course messages are still displayed. It is contained in Geant4-V03-02-ref-01. |