类 ResultException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ai.yue.library.base.exception.ResultException
-
- 所有已实现的接口:
Serializable
public class ResultException extends RuntimeException
Result 结果异常定义- 从以下版本开始:
- 2018年2月3日
- 作者:
- ylyue
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ResultException(int businessId, Result<?> result)ResultException(int businessId, String msg)异常消息构造ResultException(Result<?> result)ResultException(String msg)异常消息构造ResultException(String msg, Object... values)异常消息格式化构造
-
方法概要
-
-
-
构造器详细资料
-
ResultException
public ResultException(String msg)
异常消息构造
R.errorPrompt(String) 的便捷方式
-
ResultException
public ResultException(String msg, Object... values)
异常消息格式化构造
R.errorPromptFormat(String, Object...) 的便捷方式
msg支持文本模板格式化,{} 表示占位符
例:("this is {} for {}", "a", "b") = this is a for b- 参数:
msg- 文本模板,被替换的部分用 {} 表示values- 文本模板中占位符被替换的值
-
ResultException
public ResultException(Result<?> result)
-
ResultException
public ResultException(int businessId, String msg)异常消息构造
R.errorPrompt(String) 的便捷方式
-
ResultException
public ResultException(int businessId, Result<?> result)
-
-