dataaccessexception.java.svn-base
来自「本项目是基于展示新闻的一款产品。在本系统中用户可以自定义栏目及新闻分类 发布新」· SVN-BASE 代码 · 共 38 行
SVN-BASE
38 行
/**
* 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 + =
减小字号Ctrl + -
显示快捷键?