When an SQL select statement doesn't return any rows, is an SQLException thrown?
No. If you want to throw an exception, you have to wrap the SQL related code in a custom class and throw Exception like ObjectNotFoundException when the returned ResultSet is empty.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.