@@ -145,7 +145,7 @@ static SqlAuthenticationToken getSqlFedAuthToken(SqlFedAuthInfo fedAuthInfo, Str
145145 } catch (MalformedURLException | ExecutionException e ) {
146146 throw getCorrectedException (e , user , authenticationString );
147147 } catch (TimeoutException e ) {
148- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
148+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), user , authenticationString );
149149 } finally {
150150 if (isSemAcquired ) {
151151 sem .release ();
@@ -223,7 +223,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenPrincipal(SqlFedAuthInfo fedAuth
223223 } catch (MalformedURLException | ExecutionException e ) {
224224 throw getCorrectedException (e , aadPrincipalID , authenticationString );
225225 } catch (TimeoutException e ) {
226- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
226+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), aadPrincipalID , authenticationString );
227227 } finally {
228228 if (isSemAcquired ) {
229229 sem .release ();
@@ -354,7 +354,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenPrincipalCertificate(SqlFedAuthI
354354 throw new SQLServerException (SQLServerException .getErrString ("R_readCertError" ) + e .getMessage (), null , 0 ,
355355 null );
356356 } catch (TimeoutException e ) {
357- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
357+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), aadPrincipalID , authenticationString );
358358 } catch (Exception e ) {
359359 throw getCorrectedException (e , aadPrincipalID , authenticationString );
360360
@@ -420,7 +420,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenIntegrated(SqlFedAuthInfo fedAut
420420 } catch (IOException | ExecutionException e ) {
421421 throw getCorrectedException (e , user , authenticationString );
422422 } catch (TimeoutException e ) {
423- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
423+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), user , authenticationString );
424424 } finally {
425425 if (isSemAcquired ) {
426426 sem .release ();
@@ -526,7 +526,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenInteractive(SqlFedAuthInfo fedAu
526526 } catch (MalformedURLException | URISyntaxException | ExecutionException e ) {
527527 throw getCorrectedException (e , user , authenticationString );
528528 } catch (TimeoutException e ) {
529- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
529+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), user , authenticationString );
530530 } finally {
531531 if (isSemAcquired ) {
532532 sem .release ();
0 commit comments