KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
|
#include "TError.h"
#include "TClass.h"
Macros | |
#define | KV__ERROR(method) Form("%s::"#method,IsA()->GetName()) |
Defines macros for standard error messages.
In classes which inherit from TObject, we use the methods TObject::Error, TObject::Warning etc.
In classes which do not inherit from TObject, we can still use the same standard messages, by adding
and by defining the following macro
we can then use the following to give e.g. a Warning in a method whose name is SomeMethod:
the Warning will appear with "ClassName::SomeMethod", ClassName being the class of the actual object (i.e. name of derived class if object inherits from class in which SomeMethod is defined).
Definition in file KVError.h.