private static void AddPathException() { var pathException = new PathException(); ChangePathException(pathException, Configuration.Instance.PathExceptions); Configuration.Instance.PathExceptions.Add(pathException); }
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; }
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)) { }
private static void DeletePathException(PathException pathException, Collection <PathException> pathExceptions) { pathExceptions.Remove(pathException); }