org.webframe.web.springmvc.exp.AjaxException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wf-web-springmvc Show documentation
Show all versions of wf-web-springmvc Show documentation
Java Web Frame: wf-web-springmvc
/*
* wf-web-springmvc
* Created on 2012-1-29-下午09:46:44
*/
package org.webframe.web.springmvc.exp;
import org.webframe.web.springmvc.bean.AjaxError;
/**
* AjaxException
*
* @author 黄国庆
* @since 2012-1-29 下午09:46:44
* @version
*/
public class AjaxException extends RuntimeException {
private AjaxError ajaxError = null;
private static final long serialVersionUID = -8179866059145520037L;
public AjaxException(String msg) {
super(msg);
}
public AjaxException(Throwable cause) {
super(cause);
}
public AjaxException(AjaxError ajaxError, Throwable cause) {
super(cause);
this.ajaxError = ajaxError;
}
public AjaxError getAjaxError() {
if (ajaxError == null) {
this.ajaxError = new AjaxError(getMessage());
}
return ajaxError;
}
}