Code example for QueryTimeoutException

			// MySQL Query execution was interrupted 
			if ( "70100".equals( sqlState ) ||
				// Oracle user requested cancel of current operation 
				  "72000".equals( sqlState ) ) {
				throw new QueryTimeoutException(  message, sqlException, sql );
		return handledNonSpecificException( sqlException, message, sql );
	 * Handle an exception not converted to a specific type based on the SQLState. 
	 * @param sqlException The exception to be handled. 
	 * @param message      An optional message 
	 * @param sql          Optionally, the sql being performed when the exception occurred. 
	 * @return The converted exception; should <b>never</b> be null. 
Stop searching for code, let great code find you!  Add Codota to your java IDE