コード例 #1
0
        /// <summary>
        /// Used to raise exception when validation of the current tlog has failed
        /// </summary>
        /// <param name="TransactionNumber">The Current Transaction Number</param>
        /// <param name="LineNumber">The Current position in the file</param>
        /// <param name="ErrorMessage">The Error Message To send back</param>
        private void QuitWithError(string TransactionNumber, string LineNumber, string ErrorMessage)
        {
            ValidateException ex = new ValidateException(ErrorMessage);

            ex.LineNumber        = LineNumber;
            ex.TransactionNumber = TransactionNumber;
            throw ex;
        }
コード例 #2
0
        /// <summary>
        ///  Used to raise exception when validation of the current tlog has failed
        /// </summary>
        /// <param name="TransactionNumber">The Current Transaction Number</param>
        /// <param name="LineNumber">The Current position in the file</param>
        /// <param name="ErrorMessage">The Error Message To send back</param>
        /// <param name="ExpectedValue">The Value expected</param>
        /// <param name="ActualValue">The value that was returned</param>
        private void QuitWithError(string TransactionNumber, string LineNumber, string ErrorMessage, string ExpectedValue, string ActualValue)
        {
            ValidateException ex = new ValidateException(ErrorMessage);

            ex.LineNumber        = LineNumber;
            ex.TransactionNumber = TransactionNumber;
            ex.ExpectedValue     = ExpectedValue;
            ex.ActualValue       = ActualValue;
            throw ex;
        }