TF-1963 Sync handle exception at data and domain layer

(cherry picked from commit 591388e01fc4fc4c357bdb40a44dac0377dc9fe5)
This commit is contained in:
dab246
2023-06-26 21:00:30 +07:00
committed by Dat Vu
parent badb7509b6
commit 8be3eb53e9
20 changed files with 77 additions and 64 deletions
@@ -18,9 +18,8 @@ class AuthenticationUserSuccess extends UIState {
}
class AuthenticationUserFailure extends FeatureFailure {
final dynamic exception;
AuthenticationUserFailure(this.exception);
AuthenticationUserFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
@@ -20,9 +20,8 @@ class CheckOIDCIsAvailableSuccess extends UIState {
}
class CheckOIDCIsAvailableFailure extends FeatureFailure {
final dynamic exception;
CheckOIDCIsAvailableFailure(this.exception);
CheckOIDCIsAvailableFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
@@ -19,9 +19,8 @@ class GetAuthenticationInfoSuccess extends UIState {
}
class GetAuthenticationInfoFailure extends FeatureFailure {
final dynamic exception;
GetAuthenticationInfoFailure(this.exception);
GetAuthenticationInfoFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
@@ -20,9 +20,8 @@ class GetOIDCConfigurationSuccess extends UIState {
}
class GetOIDCConfigurationFailure extends FeatureFailure {
final dynamic exception;
GetOIDCConfigurationFailure(this.exception);
GetOIDCConfigurationFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
@@ -20,9 +20,8 @@ class GetOIDCIsAvailableSuccess extends UIState {
}
class GetOIDCIsAvailableFailure extends FeatureFailure {
final dynamic exception;
GetOIDCIsAvailableFailure(this.exception);
GetOIDCIsAvailableFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
@@ -21,9 +21,8 @@ class GetTokenOIDCSuccess extends UIState {
}
class GetTokenOIDCFailure extends FeatureFailure {
final dynamic exception;
GetTokenOIDCFailure(this.exception);
GetTokenOIDCFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];