예제 #1
0
        /// <summary>Add an error to the ErrorCollection.</summary>
        /// <param name="lineNumber">The line when the error occurs.</param>
        /// <param name="ex">The exception throwed, can be null.</param>
        /// <param name="recordLine">The record values</param>
        protected void AddError(int lineNumber, Exception ex, string recordLine)
        {
            var e = new ErrorInfo();
            e.mLineNumber = lineNumber;
//			e.mColumnNumber = colNum;
            e.mExceptionInfo = ex;
            e.mRecordString = recordLine;

            mErrorManager.AddError(e);
        }
예제 #2
0
 /// <summary>Add the specified ErrorInfo to the contained collection.</summary>
 /// <param name="error"></param>
 internal void AddError(ErrorInfo error)
 {
     mErrorsArray.Add(error);
 }