Browse Source

handle error notification

master
daivph 5 years ago
parent
commit
108bb2412a
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      lib/presentation/screens/notification/bloc/noti_bloc.dart
  2. +3
    -3
      lib/utils/const_string.dart

+ 1
- 1
lib/presentation/screens/notification/bloc/noti_bloc.dart View File

hasReachedMax: hasReachedMax:
response.notificationDTO.length < pageSize ? true : false); response.notificationDTO.length < pageSize ? true : false);
} catch (e) { } catch (e) {
yield NotiFailure(errorString: exception_common);
yield NotiFailure(errorString: AppException.handleError(e));
} }
} else if (event is ReceiveDataFromSocket) { } else if (event is ReceiveDataFromSocket) {
List<NotificationDTO> updatedItems = new List<NotificationDTO>(); List<NotificationDTO> updatedItems = new List<NotificationDTO>();

+ 3
- 3
lib/utils/const_string.dart View File

const String exception_dio_1016 = "Tên vật tư đã tồn tại trong hệ thống"; const String exception_dio_1016 = "Tên vật tư đã tồn tại trong hệ thống";
const String exception_dio_1017 = "Mã SKU đã tồn tại trong hệ thống"; const String exception_dio_1017 = "Mã SKU đã tồn tại trong hệ thống";
const String exception_dio_1018 = const String exception_dio_1018 =
"Người dùng hiện tại không thể truy cập này";
"Người dùng hiện tại không thể truy cập thông tin này";
const String exception_dio_1019 = const String exception_dio_1019 =
"Người dùng hiện tại không thể truy cập đơn vị này";
"Người dùng hiện tại không thể truy cập thông tin này";
const String exception_dio_1020 = const String exception_dio_1020 =
"Người dùng hiện tại không thể truy cập hướng dẫn này";
"Người dùng hiện tại không thể truy cập thông tin này";
const String exception_dio_1021 = "Số lượng vật tư lớn hơn trong kho"; const String exception_dio_1021 = "Số lượng vật tư lớn hơn trong kho";

Loading…
Cancel
Save