Unify exceptions
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWallets/LoadWalletViewModel.cs
@@ -455,7 +455,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.LoadWallets
{
keyManager = Global.WalletManager.GetWalletByName(walletName).KeyManager;
}
- catch (InvalidOperationException)
+ catch (FileNotFoundException)
{
// The selected wallet is not available any more (someone deleted it?).
OnCategorySelected();

MODIFY
WalletWasabi/Wallets/WalletManager.cs
WalletWasabi/Wallets/WalletManager.cs
@@ -367,7 +367,7 @@ namespace WalletWasabi.Wallets
}
if (wallet is null)
{
- throw new InvalidOperationException($"Wallet name:{wallet} not found.");
+ throw new FileNotFoundException($"Wallet name:{wallet} not found.");
}
return wallet;
}

Unify exceptions