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

@@ -132,7 +132,7 @@ class NotiBloc extends Bloc<NotiEvent, NotiState> {
hasReachedMax:
response.notificationDTO.length < pageSize ? true : false);
} catch (e) {
yield NotiFailure(errorString: exception_common);
yield NotiFailure(errorString: AppException.handleError(e));
}
} else if (event is ReceiveDataFromSocket) {
List<NotificationDTO> updatedItems = new List<NotificationDTO>();

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

@@ -89,9 +89,9 @@ const String exception_dio_1015 = "Số lượng nhập kho phải lớn hơn 0"
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_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 =
"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 =
"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";

Loading…
Cancel
Save