TF-2928 Write unit test for validateUrgentException and onError in BaseController

This commit is contained in:
dab246
2024-07-16 14:12:50 +07:00
committed by Dat H. Pham
parent 77246a9d36
commit 103dc9c5e3
4 changed files with 207 additions and 35 deletions
@@ -11,16 +11,10 @@ abstract class AuthenticationException extends RemoteException {
class BadCredentials extends AuthenticationException {
BadCredentials() : super(AuthenticationException.wrongCredential);
@override
List<Object?> get props => [message];
}
class BadGateway extends AuthenticationException {
BadGateway() : super(AuthenticationException.badGateway);
@override
List<Object?> get props => [message];
}
class NotFoundAuthenticatedAccountException implements Exception {}
@@ -29,9 +23,6 @@ class NotFoundStoredTokenException implements Exception {}
class InvalidBaseUrl extends AuthenticationException {
InvalidBaseUrl() : super(AuthenticationException.invalidBaseUrl);
@override
List<Object?> get props => [message];
}
class NotFoundAccessTokenException implements Exception {}