Пример #1
0
 public FileException(File.Error error, File source, int line) : base(error + " thrown.\nPath: " + source.Path + "\nLine: " + line)
 {
     this.Error  = error;
     this.Source = source;
     this.Line   = line;
 }
Пример #2
0
 public FileException(File.Error error) : base(error + " thrown.")
 {
     this.Error  = error;
     this.Source = null;
     this.Line   = NO_LINE;
 }
Пример #3
0
 public FileException(File.Error error, File source) : base(error + " thrown.\nPath: " + source.Path)
 {
     this.Error  = error;
     this.Source = source;
     this.Line   = NO_LINE;
 }
Пример #4
0
 public static string GetString(File.Error error)
 {
     return(resourceManager.GetString(Prefix.FILE_ERROR + "_" + error, CultureInfo.CurrentUICulture));
 }