ft/adds unauthorized err catch
This commit is contained in:
parent
55a8590957
commit
3e7fff14b8
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user