com.power.common.constants.BaseErrorCode Maven / Gradle / Ivy
package com.power.common.constants;
import com.power.common.interfaces.IMessage;
/**
* @author yu 2018/11/30.
*/
public interface BaseErrorCode {
enum Common implements IMessage {
SUCCESS("0000", "succeed"),
PARAM_EMPTY("1001", "必选参数为空"),
PARAM_ERROR("1002", "参数格式错误"),
UNKNOWN_ERROR("9999", "系统繁忙,请稍后再试....");
private String code;
private String message;
Common(String errorCode, String errorMessage) {
this.code = errorCode;
this.message = errorMessage;
}
@Override
public String getCode() {
return this.code;
}
@Override
public String getMessage() {
return this.message;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy