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

com.power.common.constants.BaseErrorCode Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
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 errCode, String errMsg) {
            this.code = errCode;
            this.message = errMsg;
        }

        @Override
        public String getCode() {
            return this.code;
        }

        @Override
        public String getMessage() {
            return this.message;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy