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

Should throw informational exception when client is not found when getClientByAccountNumber() is invoked #14

Closed
pitzzahh opened this issue Aug 11, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@pitzzahh
Copy link
Owner

When the client is not found, it throws

Exception in thread "main" org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
	at org.springframework.dao.support.DataAccessUtils.nullableSingleResult(DataAccessUtils.java:97)
	at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:887)
	at io.github.pitzzahh.atm.dao.AtmDAOImplementation.lambda$getClientByAccountNumber$3(AtmDAOImplementation.java:81)
	at App.main(App.java:47)

which is valid but not much info about it.

@pitzzahh pitzzahh added the documentation Improvements or additions to documentation label Aug 11, 2022
@pitzzahh pitzzahh assigned pitzzahh and unassigned pitzzahh Aug 11, 2022
pitzzahh pushed a commit that referenced this issue Aug 12, 2022
@pitzzahh
Copy link
Owner Author

fixed on commit: 9413d68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant