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

            ChangePathException(pathException, Configuration.Instance.PathExceptions);
            Configuration.Instance.PathExceptions.Add(pathException);
        }
예제 #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;
        }
예제 #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));
 }
예제 #4
0
 public PathException(PATH_EXCEPTION_TYPE type) : base(PathException.GetMessage(type))
 {
 }
예제 #5
0
 private static void DeletePathException(PathException pathException, Collection <PathException> pathExceptions)
 {
     pathExceptions.Remove(pathException);
 }