Files
workavia-mail-front/lib/features/login/domain/exceptions/login_exception.dart
T
2024-04-23 12:44:20 +07:00

22 lines
497 B
Dart

import 'package:flutter/services.dart';
class NotFoundDataResourceRecordException implements Exception {}
class NotFoundUrlException implements Exception {}
class NoSuitableBrowserForOIDCException implements Exception {
static const noBrowserAvailableCode = 'no_browser_available';
static bool verifyException(dynamic exception) {
if (exception is PlatformException) {
if (exception.code == noBrowserAvailableCode) {
return true;
}
}
return false;
}
}