The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
ErrorManagement.ErrorManager Class Reference

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...
 

Detailed Description

Class to allow the management of all different error types happened.

Implements Singleton pattern.

Definition at line 29 of file ErrorManager.cs.

Member Function Documentation

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

Parameters
errorNumberThe error index
Returns
The error

Definition at line 251 of file ErrorManager.cs.

void ErrorManagement.ErrorManager.NotifyError ( IError  error)

Notify the error

Parameters
errorError to notify.

Definition at line 212 of file ErrorManager.cs.

Property Documentation

int ErrorManagement.ErrorManager.ErrorCount
get

Returns the number of errors

Definition at line 109 of file ErrorManager.cs.

bool ErrorManagement.ErrorManager.ErrorFound
get

Returns TRUE if an error occurred, FALSE otherwise.

Definition at line 86 of file ErrorManager.cs.

ErrorManager ErrorManagement.ErrorManager.Instance
staticget

Gets the unique instance of ErrorManager

Definition at line 69 of file ErrorManager.cs.

string ErrorManagement.ErrorManager.LogFileName
getset

Filename of the log file.

Definition at line 101 of file ErrorManager.cs.

bool ErrorManagement.ErrorManager.ShowInConsole
getset

To show the error mesagges in console

Definition at line 77 of file ErrorManager.cs.

bool ErrorManagement.ErrorManager.ShowMessages
getset

True if messages are shown when the method notify error is called.

Definition at line 93 of file ErrorManager.cs.


The documentation for this class was generated from the following file: