Logger.LogError("The specified username and password are not recognized on the server ({Status}, {Username})",responseDto.Status,Configuration.CredentialInfo);
Logger.LogError("The specified username and password are not recognized on the server ({Status}, {Username})",responseDto.Status,Configuration.CredentialInfo);
thrownewUnauthorizedAccessException();
default:
thrownewArgumentOutOfRangeException();
}
}
catch(FileAlreadySignedException)
{
// no need for retry with already signed error
throw;
}
catch(UnsupportedFileFormatException)
{
// no need for retry with unsupported file
throw;
}
catch(UnauthorizedAccessException)
{
// no need for retry with wrong credentials
throw;
}
catch(Exceptione)
{
// wait 1sec if we haf
if(retry>0)
{
Logger.LogError(e,"Waiting 1sec, then retry signing");