Skip to content

Commit bfe689e

Browse files
committed
refactor(app_config): Update AppConfigurationBloc to emit HtHttpException
1 parent 99bfb96 commit bfe689e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/app_configuration/bloc/app_configuration_bloc.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ class AppConfigurationBloc
4343
emit(
4444
state.copyWith(
4545
status: AppConfigurationStatus.failure,
46-
errorMessage: e.message,
46+
exception: e,
4747
),
4848
);
4949
} catch (e) {
5050
emit(
5151
state.copyWith(
5252
status: AppConfigurationStatus.failure,
53-
errorMessage: 'An unknown error occurred: $e',
53+
exception: UnknownException('An unknown error occurred: $e'),
5454
),
5555
);
5656
}
@@ -79,14 +79,14 @@ class AppConfigurationBloc
7979
emit(
8080
state.copyWith(
8181
status: AppConfigurationStatus.failure,
82-
errorMessage: e.message,
82+
exception: e,
8383
),
8484
);
8585
} catch (e) {
8686
emit(
8787
state.copyWith(
8888
status: AppConfigurationStatus.failure,
89-
errorMessage: 'An unknown error occurred: $e',
89+
exception: UnknownException('An unknown error occurred: $e'),
9090
),
9191
);
9292
}

0 commit comments

Comments
 (0)