We don't know that this exception occurs only when an incorrect username or password is provided. Rather, the error needs to reflect that this is a SQLException error.