chore: Add more exception type
This commit is contained in:
parent
a72b20ca46
commit
eb879936a6
1 changed files with 3 additions and 1 deletions
|
|
@ -67,7 +67,9 @@ extension LocalizedExceptionExtension on Object {
|
||||||
supportedVersions,
|
supportedVersions,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (this is MatrixConnectionException || this is SocketException) {
|
if (this is MatrixConnectionException ||
|
||||||
|
this is SocketException ||
|
||||||
|
this is SyncConnectionException) {
|
||||||
return L10n.of(context)!.noConnectionToTheServer;
|
return L10n.of(context)!.noConnectionToTheServer;
|
||||||
}
|
}
|
||||||
if (this is String) return toString();
|
if (this is String) return toString();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue