C# Class Dev2.DataList.Contract.ErrorResultTO

Inheritance: IErrorResultTO
Show file Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
AddError ( string msg, bool checkForDuplicates = false ) : void

Adds the error.

ClearErrors ( ) : void
FetchErrors ( ) : IList

Fetches the errors.

HasErrors ( ) : bool

Determines whether this instance has errors.

MakeDataListReady ( bool AsXML = true ) : string

Makes the error collection data list insert ready.

MakeDisplayReady ( ) : string

Makes the error collection user ready.

MakeErrorResultFromDataListString ( string errorsString ) : ErrorResultTO

Makes ErrorResultTO from a error string from the data list.

MakeUserReady ( ) : string

Makes the error collection user ready.

MergeErrors ( ErrorResultTO toMerge ) : void

Merges the errors.

MergeErrors ( IErrorResultTO toMerge ) : void

Merges the errors.

RemoveError ( string msg ) : void

Remove the error from the list

Private Methods

Method Description
FormatErrorMessage ( string s ) : string

Method Details

AddError() public method

Adds the error.
public AddError ( string msg, bool checkForDuplicates = false ) : void
msg string The MSG.
checkForDuplicates bool
return void

ClearErrors() public method

public ClearErrors ( ) : void
return void

FetchErrors() public method

Fetches the errors.
public FetchErrors ( ) : IList
return IList

HasErrors() public method

Determines whether this instance has errors.
public HasErrors ( ) : bool
return bool

MakeDataListReady() public method

Makes the error collection data list insert ready.
public MakeDataListReady ( bool AsXML = true ) : string
AsXML bool
return string

MakeDisplayReady() public method

Makes the error collection user ready.
public MakeDisplayReady ( ) : string
return string

MakeErrorResultFromDataListString() public static method

Makes ErrorResultTO from a error string from the data list.
public static MakeErrorResultFromDataListString ( string errorsString ) : ErrorResultTO
errorsString string Error string to convert
return ErrorResultTO

MakeUserReady() public method

Makes the error collection user ready.
public MakeUserReady ( ) : string
return string

MergeErrors() public method

Merges the errors.
public MergeErrors ( ErrorResultTO toMerge ) : void
toMerge ErrorResultTO To merge.
return void

MergeErrors() public method

Merges the errors.
public MergeErrors ( IErrorResultTO toMerge ) : void
toMerge IErrorResultTO To merge.
return void

RemoveError() public method

Remove the error from the list
public RemoveError ( string msg ) : void
msg string
return void