KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > jdbc > JdbcBatchUpdateException


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.jdbc;
6
7 import java.io.PrintStream JavaDoc;
8 import java.io.PrintWriter JavaDoc;
9 import java.sql.BatchUpdateException JavaDoc;
10 import java.sql.SQLException JavaDoc;
11
12 public class JdbcBatchUpdateException extends BatchUpdateException JavaDoc {
13
14     private static final long serialVersionUID = 9006432914018679675L;
15     
16     /**
17      * INTERNAL
18      */

19     public JdbcBatchUpdateException(SQLException JavaDoc next, int[] updateCounts) {
20         super(next.getMessage(), next.getSQLState(), next.getErrorCode(), updateCounts);
21     }
22
23     /**
24      * INTERNAL
25      */

26     public void printStackTrace() {
27         super.printStackTrace();
28         if(getNextException() != null) {
29             getNextException().printStackTrace();
30         }
31     }
32
33     /**
34      * INTERNAL
35      */

36     public void printStackTrace(PrintWriter JavaDoc s) {
37         if(s!=null) {
38             super.printStackTrace(s);
39             if(getNextException() != null) {
40                 getNextException().printStackTrace(s);
41             }
42         }
43     }
44
45     /**
46      * INTERNAL
47      */

48     public void printStackTrace(PrintStream JavaDoc 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