Skip to content

Commit 62f43c8

Browse files
Remove obsolete custom Exception, UnsupportedPlatform
Use UnsupportedError instead
1 parent 720d49e commit 62f43c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libs/sdk-flutter/lib/native_toolkit.dart

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ ExternalLibrary? _breezSDK;
77
const _libName = "breez_sdk_bindings";
88
const _iosLibName = "breez_sdkFFI";
99

10-
class UnsupportedPlatform implements Exception {
11-
UnsupportedPlatform(String s);
12-
}
13-
1410
ExternalLibrary createLibraryImpl() {
1511
if (_breezSDK == null) {
1612
if (Platform.isAndroid || Platform.isLinux) {
@@ -26,7 +22,7 @@ ExternalLibrary createLibraryImpl() {
2622
_breezSDK = ExternalLibrary.process(iKnowHowToUseIt: true);
2723
}
2824
} else {
29-
throw UnsupportedPlatform('${Platform.operatingSystem} is not yet supported!');
25+
throw UnsupportedError('${Platform.operatingSystem} is not yet supported!');
3026
}
3127
}
3228
return _breezSDK!;

0 commit comments

Comments
 (0)