package org.foxbpm.web.common.exception; /** * 封装异常信息 * * @author MEL * @date 2014-06-06 */ public class FoxbpmWebException extends RuntimeException { /** * serialVersionUID */ private static final long serialVersionUID = 1L; private String errorCode; private String errorMsg; private Throwable cause; public FoxbpmWebException(String errorCode, String errorMsg) { super(errorMsg); this.errorCode = errorCode; this.errorMsg = errorMsg; } public FoxbpmWebException(Throwable cause) { super(cause); this.cause = cause; } public FoxbpmWebException(String errorMsg, String errorCode, Throwable cause) { super(errorMsg, cause); this.cause = cause; this.errorCode = errorCode; this.errorMsg = errorMsg; } public String getErrorCode() { return errorCode; } public void setErrorCode(String errorCode) { this.errorCode = errorCode; } public String getErrorMsg() { return errorMsg; } public void setErrorMsg(String errorMsg) { this.errorMsg = errorMsg; } public Throwable getCause() { return cause; } public void setCause(Throwable cause) { this.cause = cause; } }