Hmm, the doc I'm looking at just says SQLException, so it's probably fine?

"Sets the number of seconds the driver will wait for a Statement object to execute to the given number of seconds. If the limit is exceeded, an SQLException is thrown."