Author: sebb
Date: Tue Sep 20 21:16:37 2011
New Revision: 1173377

URL: http://svn.apache.org/viewvc?rev=1173377&view=rev
Log:
Does not throw Exception; throws SQLException instead

Modified:
    
commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java

Modified: 
commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java
URL: 
http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java?rev=1173377&r1=1173376&r2=1173377&view=diff
==============================================================================
--- 
commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java
 (original)
+++ 
commons/proper/dbutils/trunk/src/main/java/org/apache/commons/dbutils/AsyncQueryRunner.java
 Tue Sep 20 21:16:37 2011
@@ -107,10 +107,10 @@ public class AsyncQueryRunner extends Ab
          * The actual call to executeBatch.
          *
          * @return an array of update counts containing one element for each 
command in the batch.
-         * @throws Exception if a database access error occurs or one of the 
commands sent to the database fails.
+         * @throws SQLException if a database access error occurs or one of 
the commands sent to the database fails.
          * @see PreparedStatement#executeBatch()
          */
-        public int[] call() throws Exception {
+        public int[] call() throws SQLException {
             int[] ret = null;
 
             try {
@@ -248,10 +248,10 @@ public class AsyncQueryRunner extends Ab
          * The actual call to {@code handle()} method.
          *
          * @return an array of update counts containing one element for each 
command in the batch.
-         * @throws Exception if a database access error occurs.
+         * @throws SQLException if a database access error occurs.
          * @see ResultSetHandler#handle(ResultSet)
          */
-        public T call() throws Exception {
+        public T call() throws SQLException {
             ResultSet rs = null;
             T ret = null;
 
@@ -423,10 +423,10 @@ public class AsyncQueryRunner extends Ab
          *
          * @return either (1) the row count for SQL Data Manipulation Language 
(DML) statements or
          *                (2) 0 for SQL statements that return nothing
-         * @throws Exception if a database access error occurs.
+         * @throws SQLException if a database access error occurs.
          * @see PreparedStatement#executeUpdate()
          */
-        public Integer call() throws Exception {
+        public Integer call() throws SQLException {
             int rows = 0;
 
             try {


Reply via email to