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

📄 commonexception.java

📁 招标投标网上系统
💻 JAVA
字号:
/* 
 * @(#)CommonException.java
 *
 * Copyright 2003 by SYNTC, All rights reserved.
 *
 * This software is the confidential and proprietary information of SYNTC.
 * ("Confidential Information").
 */

package cn.com.syntc.common.io;

import java.io.PrintStream;
import java.io.PrintWriter;

/**
 * @title:        CommonException <p>
 * @description:  共通class发生例外 <p>
 * @authority:    Copyright (c) <p>
 * @company:      SYNTC <p>
 * @author:       wang yong <p>
 * @version:      1.0 <p>
 */
public class CommonException extends RuntimeException{

    private Throwable previousThrowable = null;

    public CommonException() {

    }

    public CommonException(String message){
        super(message);
    }

    public void printStackTrace(){
        super.printStackTrace();
        if (this.previousThrowable != null)
        {
            this.previousThrowable.printStackTrace();
        }
    }

    public CommonException(Throwable inThrowable){
        this.previousThrowable = inThrowable;
    }
}

⌨️ 快捷键说明

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