cn.net.vidyo.common.CommonErrorEnum Maven / Gradle / Ivy
package cn.net.vidyo.common;
public enum CommonErrorEnum implements IErrorEnum {
PARAMETER_ERROR(1010,"paramater fail"),
InvalidArgumentFault(1001,"InvalidArgumentFault."),
GeneralFault(1002,"GeneralFault."),
RemoteException(1003,"RemoteException"),
NotLicensedFault(1004,"NotLicensedFault."),
AuthFaild(1005,"auth faild."),
ExecuteFaild(1006,"execute faild."),
NullValue(1007,"null value."),
RoomAlreadyExists(1008,"RoomAlreadyExists."),
UserAlreadyExists(1009,"UserAlreadyExists."),
Unknow(9999,"unknow");
int code;
String message;
private CommonErrorEnum(int code, String message) {
this.code = code;
this.message = message;
}
@Override
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
}