Skip to content

Commit

Permalink
User throw instead of throw exception (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukiwongky authored Oct 8, 2019
1 parent 78a4ea4 commit 71cbe95
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ internal SqlInternalConnectionTds(
|| _timeout.MillisecondsRemaining < transientRetryIntervalInMilliSeconds
|| !IsTransientError(sqlex))
{
throw sqlex;
throw;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ internal SqlInternalConnectionTds(
|| _timeout.MillisecondsRemaining < transientRetryIntervalInMilliSeconds
|| !IsTransientError(sqlex))
{
throw sqlex;
throw;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10218,7 +10218,7 @@ internal Task TdsExecuteRPC(SqlCommand cmd, _SqlRPC[] rpcArray, int timeout, boo
}
else
{
throw e;
throw;
}
}
finally
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void Connect()
if (e.ErrorCode != 10057)
{
// We don't recognize it
throw e;
throw;
}

// We are going to retry with IPv6 now because of won't fix bug
Expand Down

0 comments on commit 71cbe95

Please sign in to comment.