com.envision.event.exception.EventException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eos-event-api-new Show documentation
Show all versions of eos-event-api-new Show documentation
1.0 初版
1.1 增加了event的flag和custom_attr字段。
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