- java.lang.Object
-
- org.redkale.service.RetCodes
-
public abstract class RetCodes extends Object
错误码加载器详情见: https://redkale.org
- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
-
-
构造器概要
构造器 限定符 构造器 说明 protected
RetCodes()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static int
load(Class codeClass)
static int
load(Map<String,Map<Integer,String>> map)
static String
retInfo(int retcode)
static String
retInfo(String locale, int retcode)
static RetResult
retInfo(RetResult result, int retcode, Object... args)
static RetResult
retInfo(RetResult result, String locale, int retcode, Object... args)
static RetResult
retResult(int retcode)
static RetResult
retResult(int retcode, Object... args)
static RetResult
retResult(String locale, int retcode)
static RetResult
retResult(String locale, int retcode, Object... args)
static <T> CompletableFuture<RetResult<T>>
retResultFuture(int retcode)
static <T> CompletableFuture<RetResult<T>>
retResultFuture(int retcode, Object... args)
static <T> CompletableFuture<RetResult<T>>
retResultFuture(String locale, int retcode)
static <T> CompletableFuture<RetResult<T>>
retResultFuture(String locale, int retcode, Object... args)
-
-
-
方法详细资料
-
load
public static int load(Class codeClass)
-
retResult
public static RetResult retResult(int retcode)
-
retResultFuture
public static <T> CompletableFuture<RetResult<T>> retResultFuture(int retcode)
-
retResultFuture
public static <T> CompletableFuture<RetResult<T>> retResultFuture(String locale, int retcode)
-
retResultFuture
public static <T> CompletableFuture<RetResult<T>> retResultFuture(int retcode, Object... args)
-
retResultFuture
public static <T> CompletableFuture<RetResult<T>> retResultFuture(String locale, int retcode, Object... args)
-
retInfo
public static RetResult retInfo(RetResult result, String locale, int retcode, Object... args)
-
retInfo
public static String retInfo(int retcode)
-
-