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
@@ -23,13 +23,9 @@ class BadGateway extends AuthenticationException {
List<Object?> get props => [message];
}
class NotFoundAuthenticatedAccountException implements Exception {
NotFoundAuthenticatedAccountException();
}
class NotFoundAuthenticatedAccountException implements Exception {}
class NotFoundStoredTokenException implements Exception {
NotFoundStoredTokenException();
}
class NotFoundStoredTokenException implements Exception {}
class InvalidBaseUrl extends AuthenticationException {
InvalidBaseUrl() : super(AuthenticationException.invalidBaseUrl);
@@ -38,17 +34,21 @@ class InvalidBaseUrl extends AuthenticationException {
List<Object?> get props => [message];
}
class NotFoundAccessTokenException implements Exception {
NotFoundAccessTokenException();
}
class NotFoundAccessTokenException implements Exception {}
class AccessTokenInvalidException implements Exception {
AccessTokenInvalidException();
}
class AccessTokenInvalidException implements Exception {}
class DownloadAttachmentHasTokenExpiredException implements Exception {
final String refreshToken;
DownloadAttachmentHasTokenExpiredException(this.refreshToken);
}
}
class CanNotFoundBaseUrl implements Exception {}
class CanNotFoundUserName implements Exception {}
class CanNotFoundPassword implements Exception {}
class CanNotAuthenticationInfoOnWeb implements Exception {}