亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 異常處理類(英文注釋).txt

?? java 的代碼
?? TXT
字號:
**
 * (#)ThrowableManager.java    1.0    Apr 10, 2008
 * 
 * Copyright 2007- wargrey , Inc. All rights are reserved.
 */
package net.wargrey.application;

import java.awt.Component;
import javax.swing.JOptionPane;

/**
 * This class <code>ExceptionManager</code> and its subclasses are a form of 
 * <code>Exception</code>. It is used to wrap all the <code>Throwable</code> instances
 * and handle them in a unified way. It will show the information which consists of 
 * StackTraces and Messages by using JOptionPanel.
 * 
 * @author Estelle
 * @version 1.0
 * @see java.lang.Exception
 * @since jdk 1.5
 */
public class ExceptionManager extends Exception {
    
    /**
     * This field <code>alerter</code> is used to show the information the Class offered.
     * 
     * @see javax.swing.JOptionPane
     */
    private JOptionPane alerter;
    
    /**
     * This static method create an instance of the ExceptionManager by invoking the 
     * constructor <code>ExceptionManager(String msg)</code>.
     * 
     * @param msg    The message will pass the specified constructor
     * @return    An instance of the ExceptionManager created by invoking the constructor
     *             <code>ExceptionManager(String msg)</code>.
     */
    public static ExceptionManager wrap(String msg){
        return new ExceptionManager(msg);
    }
    
    /**
     * This static method create an instance of the ExceptionManager by invoking the 
     * constructor <code>ExceptionManager(Throwable throwable)</code>.
     * 
     * @param throwable        The cause will pass the specified constructor
     * @return    An instance of the ExceptionManager created by invoking the constructor
     *             <code>ExceptionManager(Throwable throwable)</code>.
     */
    public static ExceptionManager wrap(Throwable throwable){
        return new ExceptionManager(throwable);
    }
    
    /**
     * This static method create an instance of the ExceptionManager by invoking the 
     * constructor <code>ExceptionManager(String msg,Throwable throwable)</code>. 
     * 
     * @param msg            The message will pass the specified constructor
     * @param throwable        The cause will pass the specified constructor
     * @return    An instance of the ExceptionManager created by invoking the constructor
     *             <code>ExceptionManager(String msg, Throwable throwable)</code>
     */
    public static ExceptionManager wrap(String msg,Throwable throwable){
        return new ExceptionManager(msg,throwable);
    }
    
    /**
     * Constructs a new instance with the specified detail message. The concrete handler 
     * is its super class. This constructor always used to construct a custom exception
     * not wrapping the exist exception.
     * 
     * @param msg        the detail message which is the part of the information will be
     *                     shown.
     */
    public ExceptionManager(String msg){
        super(msg);
    }
    
    /**
     * Constructs a new instance with the specified detail cause. The concrete handler 
     * is its super class. This constructor always used to wrap an exist exception.
     * 
     * @param throwable        the cause which has been caught. It's detail message and 
     *                         stacktrace are the parts the information will be shown.
     */
    public ExceptionManager(Throwable throwable){
        super(throwable);
    }
    
    /**
     * Constructs a new instance with the specified detail message and cause. The 
     * concrete handler is its super class. This constructor always used to construct
     * an exception wrapping the exist exception but requires a custom message. 
     * 
     * @param msg        the detail message which is the part of the information will 
     *                     be shown.
     * @param throwable    the cause which has been caught. It's stacktrace is the parts
     *                     the information will be shown.
     */
    public ExceptionManager(String msg,Throwable throwable){
        super(msg,throwable);
    }
    
    /**
     * Show the information with everything is default.
     */
    public synchronized void alert(){
        alert((Component)null);
    }
    
    /**
     * Show the information in a dialog with the specified title 
     * "ThrowableManager Alerter". The dialog belongs to the given component which 
     * default is the screen. 
     * 
     * @param parent    The component cause the exception.
     */
    public synchronized void alert(Component parent){
        alert(parent,"ThrowableManager Alerter");
    }
    
    /**
     * Show the information in a dialog with the specified title.
     * 
     * @param title        The title of the dialog.
     */
    public synchronized void alert(String title){
        alert((Component)null,title);
    }
    
    /**
     * Show the information in a dialog which has the specified title and belongs to the
     * specified component.
     * 
     * @param parent    The component cause the exception.
     * @param title        The title of the dialog.
     */
    public synchronized void alert(Component parent,String title){
        StringBuilder errorMessage=new StringBuilder();
        errorMessage.append(this.toString());
        for (StackTraceElement st:((this.getCause()==null)?this:this.getCause()).getStackTrace()){
            errorMessage.append("\n\t     at ");
            errorMessage.append(st.toString());
        }        
        alerter.showMessageDialog(parent, errorMessage, title ,JOptionPane.ERROR_MESSAGE);
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合在线第一页| 日韩美女主播在线视频一区二区三区 | 国产**成人网毛片九色| 91亚洲国产成人精品一区二区三| 欧美日韩国产a| 久久精品视频在线看| 一区二区三区产品免费精品久久75| 日本欧美加勒比视频| a亚洲天堂av| 日韩一卡二卡三卡四卡| 亚洲精品高清视频在线观看| 国产伦精一区二区三区| 欧美在线看片a免费观看| 精品国精品国产| 亚洲aaa精品| 91同城在线观看| 久久精品一区二区三区不卡| 91精品国产一区二区三区蜜臀 | 9191国产精品| 亚洲另类在线视频| 一本色道久久综合亚洲精品按摩| 日韩欧美自拍偷拍| 亚洲国产精品久久一线不卡| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 欧美一级淫片007| 亚洲精品日韩一| 成人av综合一区| 国产欧美一区二区精品秋霞影院| 久久精品免费观看| 欧美一区二区在线免费观看| 五月天国产精品| 欧美三电影在线| 亚洲一区二区综合| 日韩精品午夜视频| 欧美日韩精品一区视频| 亚洲最大成人网4388xx| 日本精品裸体写真集在线观看| 中文天堂在线一区| 不卡视频免费播放| 国产精品99久久久久| 国产成a人无v码亚洲福利| 久久久久久麻豆| 国产ts人妖一区二区| 欧美激情一区不卡| a4yy欧美一区二区三区| 国产精品素人一区二区| 成人黄色小视频在线观看| 亚洲欧洲韩国日本视频| 日本精品视频一区二区| 偷拍日韩校园综合在线| 日韩欧美在线一区二区三区| 精一区二区三区| 欧美激情一二三区| 一本一道综合狠狠老| 亚洲午夜久久久久久久久电影院 | 欧美精品免费视频| 麻豆高清免费国产一区| 精品国产一区二区在线观看| 国产高清一区日本| 亚洲日本在线看| 欧美色手机在线观看| 日韩av一级片| xf在线a精品一区二区视频网站| 国产成人av福利| 亚洲色图欧洲色图| 91精品久久久久久蜜臀| 国产麻豆精品theporn| 成人免费小视频| 日本中文字幕不卡| 国产日韩视频一区二区三区| 99久久er热在这里只有精品66| 亚洲午夜久久久久久久久久久 | 91网站视频在线观看| 欧美不卡一区二区三区| 高清国产一区二区| 亚洲午夜国产一区99re久久| 精品伦理精品一区| 一本大道久久a久久综合| 毛片av一区二区| 亚洲另类在线视频| 欧美精品一区二区久久婷婷| 精品国产制服丝袜高跟| 国产一区在线观看视频| 亚洲国产一区二区在线播放| 精品污污网站免费看| 香港成人在线视频| 国产精品久线观看视频| 日韩视频在线永久播放| 99精品国产99久久久久久白柏| 免费在线成人网| 一区二区三区四区视频精品免费| 精品国产一区二区在线观看| 欧美制服丝袜第一页| 国产福利精品导航| 欧美a一区二区| 一区二区三区成人| ...av二区三区久久精品| 精品噜噜噜噜久久久久久久久试看 | 欧美不卡一区二区三区四区| 欧美日韩精品欧美日韩精品一| 成人精品免费网站| 韩日欧美一区二区三区| 日韩精品视频网| 欧美一区二区三区公司| 精品欧美一区二区三区精品久久| 老司机午夜精品| 午夜视频在线观看一区二区三区 | 一区二区三区不卡视频| 国产精品乱人伦| 久久免费精品国产久精品久久久久 | 久久久国产一区二区三区四区小说| 欧美高清www午色夜在线视频| 色噜噜夜夜夜综合网| 不卡的av在线播放| 国产精品成人免费| 亚洲国产成人午夜在线一区| 欧美精品一区视频| 亚洲精品在线网站| 国产99久久久国产精品潘金网站| 轻轻草成人在线| 日本aⅴ免费视频一区二区三区| 亚洲国产视频直播| 亚洲午夜私人影院| 日韩精品欧美精品| 日韩av一二三| 日韩电影在线一区| 国产又黄又大久久| 亚洲精品国产无天堂网2021 | 亚洲午夜免费福利视频| 亚洲国产精品一区二区尤物区| 亚洲一区二区综合| 天堂av在线一区| 久久精品免费看| 国产99精品视频| www.欧美日韩| 欧美在线一区二区三区| 欧美日韩国产电影| 日韩亚洲国产中文字幕欧美| 精品欧美久久久| 欧美激情艳妇裸体舞| 亚洲欧美激情小说另类| 亚洲自拍与偷拍| 精品嫩草影院久久| 91蜜桃视频在线| 色国产综合视频| 91精品在线观看入口| 久久久噜噜噜久久中文字幕色伊伊| 国产欧美精品日韩区二区麻豆天美| 国产精品成人一区二区三区夜夜夜| 一区二区三区在线免费| 免费高清视频精品| 国产呦萝稀缺另类资源| 96av麻豆蜜桃一区二区| 91麻豆精品国产91久久久资源速度 | 日韩欧美视频一区| 国产欧美一区二区精品忘忧草| 在线一区二区视频| 精品国产三级电影在线观看| 国产精品剧情在线亚洲| 日本在线播放一区二区三区| 成人激情小说网站| 欧美喷水一区二区| 国产精品区一区二区三| 日韩国产一二三区| 91免费看片在线观看| 欧美白人最猛性xxxxx69交| 亚洲欧美色图小说| 日本一区二区高清| 久久精品国产第一区二区三区| 99视频精品免费视频| 日韩欧美色电影| 香蕉久久夜色精品国产使用方法 | 中文字幕在线不卡视频| 久久噜噜亚洲综合| 亚洲综合色噜噜狠狠| 七七婷婷婷婷精品国产| 在线免费观看日本欧美| 亚洲精品在线观| 亚洲综合在线五月| 成人蜜臀av电影| 欧美三级视频在线观看| 色婷婷精品久久二区二区蜜臀av| www成人在线观看| 亚洲国产一二三| www.久久久久久久久| 久久久久九九视频| 午夜精品久久久久久不卡8050| 成人免费视频caoporn| 日韩欧美一区二区久久婷婷| 国产亚洲精品bt天堂精选| 亚洲视频图片小说| 麻豆一区二区三区| 日韩二区三区在线观看| 欧美在线观看禁18| 国产精品日韩精品欧美在线| 日韩中文字幕不卡| 8x8x8国产精品| 亚洲影院在线观看| 99国产精品久久久| 亚洲免费观看高清完整版在线|