📄 errorhelperbean.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 + -