package org.dazzle.common.exception;

/** @author hcqt@qq.com */
public class BaseException extends RuntimeException {

	private static final long serialVersionUID = 7369919371075409501L;
	
	private String code = null;

	/** 获取异常编码 
	 * @author hcqt@qq.com*/
	public String getCode() {
		if(null != code) {
			return code;
		}
		return code;
	}

	/** @author hcqt@qq.com */
	public BaseException() {
		super();
	}

	/** @author hcqt@qq.com */
	public BaseException(
			final String code, 
			final String message, 
			final Object... msgArg) {
		super(MsgI18n.getMsg(code, message, msgArg));
		this.code = code;
	}

	/** @author hcqt@qq.com */
	public BaseException(
			final String code, 
			final String message, 
			final Throwable cause, 
			final Object... msgArg) {
		super(MsgI18n.getMsg(code, message, msgArg), cause);
		this.code = code;
	}

}

@@ -192,16 +192,22 @@
 private 
+final 
 String c
@@ -213,15 +213,78 @@
 code
- = null
+;%0A%0A%09private final String originalMsg;%0A%0A%09private final Object%5B%5D msgArgs
 ;%0A%0A%09
@@ -354,28 +354,104 @@
 %7B%0A%09%09
-if(null != code
+return code;%0A%09%7D%0A%0A%09/** %E8%8E%B7%E5%8F%96%E5%BC%82%E5%B8%B8%E6%8F%90%E7%A4%BA%E8%AF%AD%E7%9A%84%E5%8E%9F%E5%A7%8B%E5%8F%82%E6%95%B0%E5%88%97%E8%A1%A8 %0A%09 * @author hcqt@qq.com*/%0A%09public Object%5B%5D getMsgArgs(
 ) %7B%0A
-%09
 %09%09re
@@ -459,100 +459,274 @@
 urn 
-code;%0A%09%09%7D%0A%09%09return code;%0A%09%7D%0A%0A%09/** @author hcqt@qq.com */%0A%09public BaseException() %7B%0A%09%09super()
+msgArgs;%0A%09%7D%0A%0A%09/** %E8%8E%B7%E5%8F%96%E5%BC%82%E5%B8%B8%E5%8E%9F%E5%A7%8B%E6%8F%90%E7%A4%BA%E8%AF%AD%E2%80%94%E2%80%94%E6%9C%AA%E7%BB%8F%E8%BF%87%E5%9B%BD%E9%99%85%E5%8C%96I18N%E8%BD%AC%E8%AF%91%E7%9A%84%E6%8F%90%E7%A4%BA%E8%AF%AD %0A%09 * @author hcqt@qq.com*/%0A%09public String getOriginalMsg() %7B%0A%09%09return originalMsg;%0A%09%7D%0A%0A%09/** @author hcqt@qq.com */%0A%09public BaseException() %7B%0A%09%09super();%0A%09%09this.code = null;%0A%09%09this.originalMsg = null;%0A%09%09this.msgArgs = null
 ;%0A%09%7D
@@ -920,24 +920,79 @@
 ode = code;%0A
+%09%09this.originalMsg = message;%0A%09%09this.msgArgs = msgArg;%0A
 %09%7D%0A%0A%09/** @au
@@ -1210,18 +1210,73 @@
 ode = code;%0A
+%09%09this.originalMsg = message;%0A%09%09this.msgArgs = msgArg;%0A
 %09%7D%0A%0A%7D%0A

增强了异常类，将原始异常提示语以及提示语变量记录到了数组中