Multiple catch statements with the same exception types
I've been looking all over for an answer to this and have yet to find one. Basically I am trying to connect to a database server through a GUI. My boss wants to be able to enter all fields and then check to see if they are valid entries, then if there are any invalid entries, he wants me to turn the text red, indicating that the field is invalid. I have the try statement catch ClassNotFoundException and SQLException. Because there are multiple fields that need to be checked, I have tried to have a set of if statements to check the connection info. Here is the code below, I hope this makes sens
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.