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

📄 errorhelperbean.java

📁 intra_mart是日本NDD公司开发的著名企业应用解决方案中间件。集成了J2ee服务器
💻 JAVA
字号:
/*
 * ErrorHelperBean.java
 *
 * Created on 2002/02/28, 17:21
 */

package jp.co.intra_mart.framework.base.web.bean;

/**
 * 椺奜儁乕僕偱巊梡偡傞HelperBean偱偡丅
 *
 * @author INTRAMART
 * @version 1.0
 */
public class ErrorHelperBean extends HelperBean {

    /**
     * 椺奜
     */
    private Throwable exception;

    /**
     * ErrorHelperBean傪怴婯偵惗惉偟傑偡丅
     *
     * @throws HelperBeanException ErrorHelperBean惗惉帪偵椺奜偑敪惗
     */
    public ErrorHelperBean() throws HelperBeanException {
        super();
        this.exception = null;
    }

    /**
     * 椺奜傪庢摼偟傑偡丅
     *
     * @return 椺奜
     */
    public Throwable getException() throws HelperBeanException {
        if (this.exception == null) {
            synchronized (this) {
                if (this.exception == null) {
                    try {
                        this.exception = (Throwable)getRequest().getAttribute(getServicePropertyHandler().getExceptionAttributeName());
                    } catch (Exception e) {
                        throw new HelperBeanException(e.getMessage(), e);
                    }
                }
            }
        }

        return this.exception;
    }
}

⌨️ 快捷键说明

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