?? daoruntimeexception.java
字號:
package com.tairun.component.popedom.util;
import org.apache.commons.lang.exception.NestableRuntimeException;
import org.springframework.jdbc.support.SQLExceptionTranslator;
import org.springframework.dao.DataAccessException;
import java.sql.SQLException;
/**
* Created by IntelliJ IDEA.
* User: Administrator
* Date: 2005-12-6
* Time: 9:56:05
* To change this template use File | Settings | File Templates.
*/
public class DAORuntimeException extends NestableRuntimeException implements SQLExceptionTranslator{
/**
* Constructs an Exception with a detailed message.
*
* @param message The message associated with the exception.
*/
public DAORuntimeException(final String message) {
super(message);
}
/**
* Constructs an Exception with a detailed message and detailed cause.
*
* @param message The message associated with the exception.
* @param cause the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
*/
public DAORuntimeException(final String message, final Throwable cause) {
super(message, cause);
}
/**
* Constructs an Exception with a detailed cause.
*
* @param cause the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
*/
public DAORuntimeException(final Throwable cause) {
super(cause);
}
public DataAccessException translate(String s, String s1, SQLException e) {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -