TF-196 Implement RemoteExceptionThrower when get session
This commit is contained in:
@@ -20,7 +20,7 @@ class GetCredentialInteractor {
|
||||
if (isCredentialValid(baseUrl)) {
|
||||
return Right(GetCredentialViewState(baseUrl, userName, password));
|
||||
} else {
|
||||
return Left(GetCredentialFailure(const BadCredentials()));
|
||||
return Left(GetCredentialFailure(BadCredentials()));
|
||||
}
|
||||
} catch (exception) {
|
||||
return Left(GetCredentialFailure(exception));
|
||||
|
||||
@@ -35,7 +35,7 @@ class GetStoredTokenOidcInteractor {
|
||||
if (_isCredentialValid(baseUrl)) {
|
||||
yield Right(GetStoredTokenOidcSuccess(baseUrl, tokenOidc, oidcConfiguration));
|
||||
} else {
|
||||
yield Left(GetStoredTokenOidcFailure(const InvalidBaseUrl()));
|
||||
yield Left(GetStoredTokenOidcFailure(InvalidBaseUrl()));
|
||||
}
|
||||
} catch (e) {
|
||||
log('GetStoredTokenOidcInteractor::execute(): $e');
|
||||
|
||||
Reference in New Issue
Block a user