изменения
This commit is contained in:
parent
e810b85e3b
commit
c768bdc104
@ -96,7 +96,7 @@ namespace AirBomber.Generics
|
||||
}
|
||||
if (data.Length == 0)
|
||||
{
|
||||
throw new Exception("Невалидная операция, нет данных для сохранения");
|
||||
throw new InvalidOperationException("Невалидная операция, нет данных для сохранения");
|
||||
}
|
||||
|
||||
using (StreamWriter writer = new StreamWriter(filename))
|
||||
@ -114,7 +114,7 @@ namespace AirBomber.Generics
|
||||
{
|
||||
if (!File.Exists(filename))
|
||||
{
|
||||
throw new Exception("Файл не найден");
|
||||
throw new FileNotFoundException("Файл не найден");
|
||||
}
|
||||
|
||||
using (StreamReader reader = new StreamReader(filename))
|
||||
@ -126,7 +126,7 @@ namespace AirBomber.Generics
|
||||
}
|
||||
if (!cheker.StartsWith("BomberStorage"))
|
||||
{
|
||||
throw new Exception("Неверный формат ввода");
|
||||
throw new FormatException("Неверный формат ввода");
|
||||
}
|
||||
_bomberStorage.Clear();
|
||||
string strs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user