ft/adds unauthorized err catch

This commit is contained in:
itsscb 2023-12-01 00:27:00 +01:00
parent 55a8590957
commit 3e7fff14b8

View File

@ -225,6 +225,9 @@ class BackendService {
} on SocketException {
throw FetchDataException('Keine Internet Verbindung');
} on GrpcError catch (err) {
if (err.code == 12) {
throw UnauthorizedException('${err.message}');
}
throw FetchDataException('${err.message}');
} catch (err) {
throw InternalException(err.toString());