| 程序包 | 说明 |
|---|---|
| xyz.chaobei.common.api | |
| xyz.chaobei.common.exception |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ResultCode
常用code 自定义,参考http code
https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> CommonResult<T> |
CommonResult.failed(IErrorCode errorCode)
返回一个操作失败类型
|
| 限定符和类型 | 方法和说明 |
|---|---|
IErrorCode |
ApiException.getErrorCode() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
Asserts.fail(IErrorCode iErrorCode)
断言抛出一个异常
author: MRC
|
| 构造器和说明 |
|---|
ApiException(IErrorCode iErrorCode) |
Copyright © 2021. All rights reserved.