Exemple #1
0
        private static void AddPathException()
        {
            var pathException = new PathException();

            ChangePathException(pathException, Configuration.Instance.PathExceptions);
            Configuration.Instance.PathExceptions.Add(pathException);
        }
Exemple #2
0
        private static void ChangePathException(PathException pathException, Collection <PathException> pathExceptions)
        {
            Console.Write("Pattern: ");
            var pattern = Console.ReadLine();

            if (string.IsNullOrEmpty(pattern))
            {
                throw new Exception("Pattern can't be empty");
            }
            pathException.Pattern = pattern;
        }
Exemple #3
0
 public static EPException MakePathAmbiguous(
     PathRegistryObjectType objectType,
     String name,
     PathException e)
 {
     return(new EPException(
                "The " +
                objectType.Name +
                " by name '" +
                name +
                "' is ambiguous as it exists for multiple modules: " +
                e.Message,
                e));
 }
 public PathException(PATH_EXCEPTION_TYPE type) : base(PathException.GetMessage(type))
 {
 }
Exemple #5
0
 private static void DeletePathException(PathException pathException, Collection <PathException> pathExceptions)
 {
     pathExceptions.Remove(pathException);
 }