The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
|
Class to allow the management of all different error types happened. More...
Public Member Functions | |
void | NotifyError (IError error) |
Notify the error More... | |
IError | GetError (int errorNumber) |
Returns an error object More... | |
void | Clear () |
Clears error list, sets errorFound to false, and deletes log file. More... | |
Properties | |
static ErrorManager | Instance [get] |
Gets the unique instance of ErrorManager More... | |
bool | ShowInConsole [get, set] |
To show the error mesagges in console More... | |
bool | ErrorFound [get] |
Returns TRUE if an error occurred, FALSE otherwise. More... | |
bool | ShowMessages [get, set] |
True if messages are shown when the method notify error is called. More... | |
string | LogFileName [get, set] |
Filename of the log file. More... | |
int | ErrorCount [get] |
Returns the number of errors More... | |
Class to allow the management of all different error types happened.
Implements Singleton pattern.
Definition at line 29 of file ErrorManager.cs.
void ErrorManagement.ErrorManager.Clear | ( | ) |
Clears error list, sets errorFound to false, and deletes log file.
Definition at line 260 of file ErrorManager.cs.
IError ErrorManagement.ErrorManager.GetError | ( | int | errorNumber | ) |
Returns an error object
errorNumber | The error index |
Definition at line 251 of file ErrorManager.cs.
void ErrorManagement.ErrorManager.NotifyError | ( | IError | error | ) |
|
get |
Returns the number of errors
Definition at line 109 of file ErrorManager.cs.
|
get |
Returns TRUE if an error occurred, FALSE otherwise.
Definition at line 86 of file ErrorManager.cs.
|
staticget |
Gets the unique instance of ErrorManager
Definition at line 69 of file ErrorManager.cs.
|
getset |
Filename of the log file.
Definition at line 101 of file ErrorManager.cs.
|
getset |
To show the error mesagges in console
Definition at line 77 of file ErrorManager.cs.
|
getset |
True if messages are shown when the method notify error is called.
Definition at line 93 of file ErrorManager.cs.