File: TFError.cpp Version: 1.0 Author: Reiner Rohlfs (GADC) History: 1.0 11.07.03 first released version
TFError() | |
TFError(const TFError&) | |
~TFError() | |
static void | AddError(TString& function, TString& errorMsg) |
static TClass* | Class() |
static void | ClearErrors() |
static char* | GetError(int num, char* errStr) |
static TFErrorType | GetErrorType() |
static Int_t | GetMaxErrors() |
virtual TClass* | IsA() const |
static Bool_t | IsError() |
static Int_t | NumErrors() |
TFError& | operator=(const TFError&) |
static void | PrintErrors() |
static void | RemveLastError() |
static void | SetError(const char* function, const char* errorMsg) |
static void | SetErrorType(TFErrorType eType = kAllErr) |
static void | SetMaxErrors(Int_t num) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
Inheritance Chart: | |||||
|
Adds one error message. The function name and a message should be specified. The default length of the function name at the printout functions GetError() and PrintErrors(), is 24 characters. Independent of a previous call of SetErrorType() this function will always store the error message and will never throw an TFException - ecxeption.
Set one error message. The function name and a message should be specified. The default length of the function name at the printout functions GetError() and PrintErrors(), is 24 characters. The maximum length of the errorMsg is 1999 characters. Depending on a previous call of SetErrorType() this function will store the error message, will throw an TFException - ecxeption or will do both.
Set the maximum number of stored error messages. The default value is 20 The function will remove the oldest error messages if the number is set to be less than the actual stored error messages.
Gets one error message as string. The function and the error message is copied into the string errStr and the pointer errStr is returned. num defines the 0 based index of the message. The errStr will be empty if num >= NumErrors(). The oldes error has num == 0. errStr has to be long enough to hold the function name and the error message. 2100 bytes should always be enough