Skip to content

Added better error reporting to help debug issues with mapper files #379

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 1 commit into from
Mar 27, 2015

Conversation

ryanlamore
Copy link
Contributor

Wrapped some SQL exceptions with more information about where the problem exists. Too many times I get this exception "java.sql.SQLException: Invalid column name".. I'd end up putting breakpoints in the code to find out what column MyBatis was working on.

This code really makes debugging the issue so easy as all the context is in the exception.

@emacarron emacarron added this to the 3.3.0 milestone Mar 27, 2015
@emacarron emacarron self-assigned this Mar 27, 2015
@emacarron emacarron added the enhancement Improve a feature or add a new feature label Mar 27, 2015
emacarron added a commit that referenced this pull request Mar 27, 2015
Added better error reporting to help debug issues with mapper files
@emacarron emacarron merged commit 3acb2de into mybatis:master Mar 27, 2015
@emacarron
Copy link
Member

Thank you!

pulllock pushed a commit to pulllock/mybatis-3 that referenced this pull request Oct 19, 2023
…ages

Added better error reporting to help debug issues with mapper files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve a feature or add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants