@@ -145,7 +145,7 @@ static SqlAuthenticationToken getSqlFedAuthToken(SqlFedAuthInfo fedAuthInfo, Str
145
145
} catch (MalformedURLException | ExecutionException e ) {
146
146
throw getCorrectedException (e , user , authenticationString );
147
147
} catch (TimeoutException e ) {
148
- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
148
+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), user , authenticationString );
149
149
} finally {
150
150
if (isSemAcquired ) {
151
151
sem .release ();
@@ -223,7 +223,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenPrincipal(SqlFedAuthInfo fedAuth
223
223
} catch (MalformedURLException | ExecutionException e ) {
224
224
throw getCorrectedException (e , aadPrincipalID , authenticationString );
225
225
} catch (TimeoutException e ) {
226
- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
226
+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), aadPrincipalID , authenticationString );
227
227
} finally {
228
228
if (isSemAcquired ) {
229
229
sem .release ();
@@ -354,7 +354,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenPrincipalCertificate(SqlFedAuthI
354
354
throw new SQLServerException (SQLServerException .getErrString ("R_readCertError" ) + e .getMessage (), null , 0 ,
355
355
null );
356
356
} catch (TimeoutException e ) {
357
- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
357
+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), aadPrincipalID , authenticationString );
358
358
} catch (Exception e ) {
359
359
throw getCorrectedException (e , aadPrincipalID , authenticationString );
360
360
@@ -420,7 +420,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenIntegrated(SqlFedAuthInfo fedAut
420
420
} catch (IOException | ExecutionException e ) {
421
421
throw getCorrectedException (e , user , authenticationString );
422
422
} catch (TimeoutException e ) {
423
- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
423
+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), user , authenticationString );
424
424
} finally {
425
425
if (isSemAcquired ) {
426
426
sem .release ();
@@ -526,7 +526,7 @@ static SqlAuthenticationToken getSqlFedAuthTokenInteractive(SqlFedAuthInfo fedAu
526
526
} catch (MalformedURLException | URISyntaxException | ExecutionException e ) {
527
527
throw getCorrectedException (e , user , authenticationString );
528
528
} catch (TimeoutException e ) {
529
- throw new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e );
529
+ throw getCorrectedException ( new SQLServerException (SQLServerException .getErrString ("R_connectionTimedOut" ), e ), user , authenticationString );
530
530
} finally {
531
531
if (isSemAcquired ) {
532
532
sem .release ();
0 commit comments