]> git.uio.no Git - u/mrichter/AliRoot.git/commit
Adding helper class for suppression of error message floods caused by error messages...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2010 08:42:20 +0000 (08:42 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jul 2010 08:42:20 +0000 (08:42 +0000)
commit9c5646854b06c870a8ff1974a0adf18e98074f56
tree4e1c70d9c1f6688d91673db5f3aa01ee4e868c8d
parent3c038b309d9d57055fbac163091a01f15719a277
Adding helper class for suppression of error message floods caused by error messages occurring rather frequently, e.g. for every event.
The class suppresses the printout after an adjustable number of occurences and prints an error summary when the instance gets out of scope.
Simple usage by predefined macro
 * if (nastyerror) {
 *   ALIHLTERRORGUARD(5, "nasty error, first occurence in event %d", event);
 * }
HLT/BASE/AliHLTErrorGuard.cxx [new file with mode: 0644]
HLT/BASE/AliHLTErrorGuard.h [new file with mode: 0644]
HLT/BASE/HLTbaseLinkDef.h
HLT/libHLTbase.pkg