Beispiel #1
0
        public void AddError(string id, ClientError error, params string[] path)
        {
            if (path == null || path.Length == 0)
            {
                AddError(id, error);
            }

            ClientErrors some = _childLists.FirstOrDefault((x) => x.DictionaryName == path[0]);

            if (some != null)
            {
                some.AddError(id, error, path.Skip(1).ToArray());
            }
            else
            {
                throw new Exception("Icorrect dictionary name!");
            }
        }
Beispiel #2
0
 public void AddErrors(ClientErrors errors)
 => _childLists.Add(errors);