Added Localizations and ran small fixes
This commit is contained in:
@@ -26,7 +26,7 @@ class MockWalletsService implements WalletsService {
|
||||
Future<Wallet> getWallet(String walletId) async {
|
||||
return _wallets.firstWhere(
|
||||
(wallet) => wallet.id == walletId,
|
||||
orElse: () => throw Exception('Wallet not found'),
|
||||
orElse: () => throw const WalletNotFoundException(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -38,4 +38,11 @@ class MockWalletsService implements WalletsService {
|
||||
|
||||
@override
|
||||
Future<List<Wallet>> deleteWallet() async => [];
|
||||
}
|
||||
}
|
||||
|
||||
class WalletNotFoundException implements Exception {
|
||||
const WalletNotFoundException();
|
||||
|
||||
@override
|
||||
String toString() => 'WalletNotFoundException';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user