View Javadoc
1   package guru.mikelue.jdut;
2   
3   import java.sql.SQLException;
4   
5   import guru.mikelue.jdut.jdbc.SQLExceptionConvert;
6   
7   /**
8    * Represents the runtime exception thrown by {@link DataConductor}.
9    */
10  public class DataConductException extends RuntimeException {
11  	/**
12  	 * As the type of {@link SQLExceptionConvert}.
13  	 *
14  	 * @param e The sql exception to be converted
15  	 *
16  	 * @return data conduct exception
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  }