Creates a new CError and adds it to the collection of errors

Namespace:  Asi.iBO.Errors
Assembly:  Asi.iBO (in Asi.iBO.dll) Version: 15.1.2.0

Syntax

C#
public CError NewError(
	ErrorNumber errorNumber,
	string errorLocation,
	ErrorCategory errorCategory,
	params Object[] errorValues
)
Visual Basic (Declaration)
Public Function NewError ( _
	errorNumber As ErrorNumber, _
	errorLocation As String, _
	errorCategory As ErrorCategory, _
	ParamArray errorValues As Object() _
) As CError
Visual C++
public:
CError^ NewError(
	ErrorNumber errorNumber, 
	String^ errorLocation, 
	ErrorCategory errorCategory, 
	... array<Object^>^ errorValues
)

Parameters

errorNumber
Type: Asi.iBO.Errors..::.ErrorNumber
Indicates which error has occurred
errorLocation
Type: System..::.String
Indicates where the error occurred. Format is Component.Class.Method
errorCategory
Type: Asi.iBO.Errors..::.ErrorCategory
The category of the error, e.g., Runtime, FieldValidation, Error or Warning
errorValues
Type: array< System..::.Object >[]()[]
list of variables to be substituted into the error messages. E.g., values that caused the erorr, more information, etc.

Return Value

A reference to the new error object

Remarks

If any of the parameters are invalid, it will add its own error message to the dictionary.

See Also