Commit cb55130d by huangfusuper

XML解析错误枚举及异常定义

parent ef95e428
package com.byit.enums;
/**
* @author huangfu
*/
public enum LauncherEnum {
XML_PORT_SET_ERROR("配置文件端口出现错误!"),
XML_DATA_ERROR("配置文件解析失败,或配置不正确!"),
XML_AUTO_VALUE_ERROR("自动扫描配置只能为true或者false"),
;
private String msg;
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
LauncherEnum(String msg) {
this.msg = msg;
}
}
package com.byit.exptions;
/**
* @author huangfu
*/
public class LauncherException extends RuntimeException {
public LauncherException(String message) {
super(message);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment