类 ResultException

    • 构造器详细资料

      • 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,
                               Result<?> result)