⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbconnexception.java

📁 文章管理系统 用Java开发,以Struts为框架,以Jdbc链接Mysql数据库。系统属性:系统属性设置、留言管理、友情链接管理、网站调查、公告管理 关于我们、版权声明、联系我们
💻 JAVA
字号:
package com.yhcms.db;import java.io.PrintStream;import java.io.PrintWriter;/** * <p>Title:数据库操作的各种异常</p> * <b>CopyRight: yyhweb[由由华网]</b> * @author stephen * @version YH-2.0 */public class DBConnException extends Exception {	private static final long serialVersionUID = 1L;	private Throwable throwable;    /**     *  DBConnException 无参数构造函数     */    public DBConnException() {        this.throwable = null;    }    /** DBConnException 构造函数     * @param s     */    public DBConnException(String s) {        super(s);        this.throwable = null;    }    /** DBConnException 构造函数     * @param throwable     */    public DBConnException(Throwable throwable) {    	this.throwable = null;    	this.throwable = throwable;    }    /** DBConnException 构造函数     * @param s     * @param throwable     */    public DBConnException(String s, Throwable throwable) {        super(s);        this.throwable = null;        this.throwable = throwable;    }    public void printStackTrace() {        super.printStackTrace();        if(throwable != null)            throwable.printStackTrace();    }    public void printStackTrace(PrintStream printstream) {        super.printStackTrace(printstream);        if(throwable != null)            throwable.printStackTrace(printstream);    }    public void printStackTrace(PrintWriter printwriter) {        super.printStackTrace(printwriter);        if(throwable != null)            throwable.printStackTrace(printwriter);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -