Opc.Ua.Com.Server.ComDaGroup.SetFatalError C# (CSharp) Method

SetFatalError() private method

Sets the error for all items after an unexpected error occurs.
private SetFatalError ( Opc.Ua.Com.Server.ComDaGroupItem itemsInRequest, int results, Exception e, int defaultError ) : void
itemsInRequest Opc.Ua.Com.Server.ComDaGroupItem The items in request.
results int The results.
e System.Exception The exception.
defaultError int The default error.
return void
        private void SetFatalError(ComDaGroupItem[] itemsInRequest, int[] results, Exception e, int defaultError)
        {
            int error = ComUtils.GetErrorCode(e, defaultError);

            for (int ii = 0; ii < itemsInRequest.Length; ii++)
            {
                if (itemsInRequest[ii] != null)
                {
                    results[ii] = error;
                }
            }
        }