You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the caught exception does not have a cause then pass the caught exception as the cause to the SQLTimeoutException instead of the null "e.getCause()". (#2299)
Co-authored-by: jesperah <[email protected]>
Problem description
SQLServerException might have a null cause, causing the inner most exception to be lost when wrapping and re-throwing exception.
See SQLServerStatement line 264.
if e does not have a cause then e the inner most exception is lost.
Expected behavior
caught exception is preserved as cause of new re-thrown exception.
Actual behavior
if exception does not have an inner exception then null is passed as the cause of the re-thrown exception. and the inner most exception is lost.
The text was updated successfully, but these errors were encountered: