tedious icon indicating copy to clipboard operation
tedious copied to clipboard

feat: added error state details into connection-error

Open gautamsamal opened this issue 5 years ago • 1 comments

I am facing an issue where I am wondering if it's possible to distinguish the root cause of an ELOGIN error during the connection event. Although I know that in most cases SQL server doesn't send a state other than 1 (ref) but I hope that's configurable.

Assuming the same, does it makes sense to pass those information along with ConnectionError? The PR simply adds three properties (number, state, class) to the Error instance.

gautamsamal avatar Nov 21 '20 17:11 gautamsamal

Thanks for raising this PR! We'll see what we can do about adding more error information regarding ELOGIN

IanChokS avatar Nov 24 '20 21:11 IanChokS