Skip to content

Add query to InsufficientParametersException #418

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

Merged
merged 3 commits into from
Nov 8, 2023
Merged

Add query to InsufficientParametersException #418

merged 3 commits into from
Nov 8, 2023

Conversation

kennethtiller
Copy link
Contributor

This PR adds query to InsufficientParametersException, to include the SQL in the exception message.

This makes it easier to find what code has failed with insufficient parameters by searching for the query in client codebase.

It can be hard to find the code because the asynchronous nature of the library does not include stacktrace to call site.

@kennethtiller kennethtiller changed the title Added query to InsufiicientParametersException Add query to InsufiicientParametersException Nov 3, 2023
@oshai
Copy link
Contributor

oshai commented Nov 8, 2023

Thanks for the PR! can you please add a test for it?

@kennethtiller
Copy link
Contributor Author

Thanks for the PR! can you please add a test for it?

Thanks for asking! I found it to be a natural fit for the existing tests, have a look and let me know if you'd like it another way

@oshai
Copy link
Contributor

oshai commented Nov 8, 2023

lgtm

@kennethtiller kennethtiller changed the title Add query to InsufiicientParametersException Add query to InsufficientParametersException Nov 8, 2023
@oshai oshai merged commit 83029e5 into jasync-sql:master Nov 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants