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

cn.featherfly.common.exception.ExceptionCode Maven / Gradle / Ivy

The newest version!
package cn.featherfly.common.exception;

/**
 * 异常code
 * @author zhongj
 * @since 1.6.0
 * @version 1.0
 */
public interface ExceptionCode {
    /**
     * 起始
     */
    int START_NUM = 100001;

    /**
     * 返回异常编号
     * @return 异常编号
     */
    Integer getNum();
    /**
     * 返回异常消息
     * @return 异常消息
     */
    String getMessage();
    /**
     * 返回异常模块
     * @return 异常模块
     */
    String getModule();
    /**
     * 返回异常码
     * @return 异常码
     */
    default String getCode() {
        return getModule() + getNum();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy