All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webframe.web.springmvc.bean.AjaxError Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
/*
 * 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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy