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

com.aluka.nirvana.framework.exception.constant.CommonErrors Maven / Gradle / Ivy

The newest version!
package com.aluka.nirvana.framework.exception.constant;

import com.aluka.nirvana.framework.exception.model.ErrorEnumInterface;
import com.aluka.nirvana.framework.exception.model.ErrorInfo;

/**
 *
 * @author gongli
 * @since 2019/12/25
 */
public enum CommonErrors implements ErrorEnumInterface {
    /**
     *
     */
    COMMON_ERROR(new ErrorInfo("X0000", "通用异常")),
    UNKNOWN_ERROR(new ErrorInfo("X0001", "未知异常")),
    AUTH_EMPTY_ERROR(new ErrorInfo("X0002", "用户信息为空")),
    COMMUNICATION_ERROR(new ErrorInfo("X0100", "通讯异常"));

    private ErrorInfo errorInfo;

    CommonErrors(ErrorInfo errorInfo) {
        this.errorInfo = errorInfo;
    }

    @Override
    public ErrorInfo getErrorInfo() {
        return this.errorInfo;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy