1 5 package org.h2.jdbc; 6 7 import java.io.PrintStream ; 8 import java.io.PrintWriter ; 9 import java.sql.BatchUpdateException ; 10 import java.sql.SQLException ; 11 12 public class JdbcBatchUpdateException extends BatchUpdateException { 13 14 private static final long serialVersionUID = 9006432914018679675L; 15 16 19 public JdbcBatchUpdateException(SQLException next, int[] updateCounts) { 20 super(next.getMessage(), next.getSQLState(), next.getErrorCode(), updateCounts); 21 } 22 23 26 public void printStackTrace() { 27 super.printStackTrace(); 28 if(getNextException() != null) { 29 getNextException().printStackTrace(); 30 } 31 } 32 33 36 public void printStackTrace(PrintWriter s) { 37 if(s!=null) { 38 super.printStackTrace(s); 39 if(getNextException() != null) { 40 getNextException().printStackTrace(s); 41 } 42 } 43 } 44 45 48 public void printStackTrace(PrintStream s) { 49 if(s!=null) { 50 super.printStackTrace(s); 51 if(getNextException() != null) { 52 getNextException().printStackTrace(s); 53 } 54 } 55 } 56 57 } 58 | Popular Tags |