org.webframe.web.springmvc.bean.AjaxError 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
/*
* com.berheley.bi.basic
* Created on 2011-12-4-上午10:23:58
*/
package org.webframe.web.springmvc.bean;
/**
* Ajax 错误信息,格式:{success:false, msg:{brief: "", detail: ""}}
*
* @author 黄国庆
* @since 2012-1-30 上午08:30:16
* @version
*/
public class AjaxError extends AjaxJson {
public AjaxError(String brief) {
super(false, brief);
}
public AjaxError(String brief, String detail) {
super(false, brief);
addDetailMsg(detail);
}
public void addDetailMsg(String value) {
addMsg("detail", value);
}
public AjaxError putError(String key, String value) {
addMsg(key, value);
return this;
}
}