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

org.webframe.web.springmvc.exp.AjaxException Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy