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

com.envision.event.exception.EventException Maven / Gradle / Ivy

The newest version!
package com.envision.event.exception;

/**
 * event异常类
 * 
 * @author kang.ouyang
 *
 */
public class EventException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private  int code;
	private  String codeName;

	public EventException() {
	}

	public EventException(ErrorCode code) {
		this(code, "");
	}

	public EventException(ErrorCode errCode, String msg) {
		super(msg);
		this.code = errCode.getCode();
		this.codeName = errCode.getCodeName();
	}

	public int getCode() {
		return code;
	}

	public String getCodeName() {
		return codeName;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy