📄 dataaccessexception.java
字号:
/**
* Copyright: Copyright (c) 2004 Handson
* Description:
* Title: DataAccessException.java
* @author Administrator
* Create Time: ����11:45:43
* @Version:1.0
*/
package cn.handson.model.service.exception;
/**
* @author Administrator
*
*/
public class DataAccessException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
private Throwable exceptionCause = null;
public DataAccessException(String exceptionMsg) {
super(exceptionMsg);
}
public DataAccessException(String exceptionMsg, Throwable throwable) {
super(exceptionMsg);
this.exceptionCause = throwable;
}
public void printStackTrace() {
if (exceptionCause != null) {
System.err.println("A data access error has occured:");
exceptionCause.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -