1 package guru.mikelue.jdut;
2
3 import java.sql.SQLException;
4
5 import guru.mikelue.jdut.jdbc.SQLExceptionConvert;
6
7
8
9
10 public class DataConductException extends RuntimeException {
11
12
13
14
15
16
17
18 public static DataConductException as(SQLException e)
19 {
20 return new DataConductException(e);
21 }
22
23 private final static long serialVersionUID = 1L;
24
25 public DataConductException(String message)
26 {
27 super(message);
28 }
29 public DataConductException(Throwable throwable)
30 {
31 super(throwable);
32 }
33
34 public DataConductException(String format, Object... args)
35 {
36 super(String.format(format, args));
37 }
38 }