Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IOException as a cause of SQLServerException #139

Closed
aharbunou opened this issue Feb 7, 2017 · 6 comments
Closed

Add IOException as a cause of SQLServerException #139

aharbunou opened this issue Feb 7, 2017 · 6 comments
Assignees
Milestone

Comments

@aharbunou
Copy link

Hi,
I have one comment for error handling in case of IOException. Is it possible to add the exception (SocketTimeoutException for example) to SQLServerException as a cause? We want to separate database timeouts from the rest of errors from SQL Server i.e. we need cause of SQLServerException. I will be very appreciated if you could implement this.
Thanks,
Andrei

@v-nisidh v-nisidh added this to the Next Tasks milestone Feb 7, 2017
@v-nisidh v-nisidh added the Under Review Used for pull requests under review label Feb 14, 2017
@v-nisidh v-nisidh modified the milestones: 6.1.7, Next Tasks Feb 28, 2017
@xiangyushawn
Copy link
Contributor

@aharbunou Hello. We are very glad to give help. Before we get started, we just want to clarify with you, do you want to add only SocketTimeoutException to SQLServerException as a cause? or all kinds of timeout exceptions (socket timeout, login timeout, etc.) as cause? or all SQLServerExceptions have a cause? Thank you.

@aharbunou
Copy link
Author

Hi @v-xiangs. Ideally, I would like to have cause of SQLServerException exception at any place where it possible. SocketTimeoutException is something that must have for me :)
Thanks,
Andrei

@xiangyushawn
Copy link
Contributor

@aharbunou Thank you for confirming with us. It will require a lot of work for all the SQLServerException exceptions to have causes. Also, we need plenty of time to test them. For now, we will create a PR to add SocketTimeoutException as cause to meet your needs. And we will leave the issue open and work on adding causes to all SQLServerException exceptions. Thank you.

@xiangyushawn xiangyushawn added Waiting for Response Waiting for a reply from the original poster, or affiliated party and removed Under Review Used for pull requests under review labels Mar 22, 2017
@xiangyushawn
Copy link
Contributor

xiangyushawn commented Apr 3, 2017

hello @aharbunou , we created a PR to add causes to all SQLServerException exceptions. If you have time, could you please check if it meets your needs? Thank you.

@aharbunou
Copy link
Author

Hi @v-xiangs. Everything looks good for me. It is enough to improve my current error handling. I will create ticket If I need something else :) Thank you for all your work! I really appreciate it!

@xiangyushawn
Copy link
Contributor

@aharbunou We are glad to know it meets your needs. I am closing this issue and you are very welcome to create new tickets.

@v-nisidh v-nisidh removed the Waiting for Response Waiting for a reply from the original poster, or affiliated party label Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants