Handling ROOT Warnings

Hi all,

I wonder if it possible to handle warnings in order to use them in an if closure.
In the specific case the Fit method raises a warning “Warning in : Fit data is empty” and I would want to do as follows:

if(warning is raised)
  do something

Thank you!

ROOT Version: v6-24-06

Welcome to the ROOT Forum!
See Search results for 'SetErrorHandler' - ROOT Forum

Ok, I give a look.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.