| 程序包 | 说明 |
|---|---|
| shz | |
| shz.msg |
| 限定符和类型 | 字段和说明 |
|---|---|
protected FailureMsg |
PRException.msg |
| 限定符和类型 | 方法和说明 |
|---|---|
FailureMsg |
PRException.msg() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Response<T> |
Response.fail(FailureMsg message) |
static <T> Response<T> |
Response.fail(FailureMsg message,
T payload) |
static PRException |
PRException.of(FailureMsg msg) |
static PRException |
PRException.of(FailureMsg msg,
Throwable cause) |
static void |
PRException.requireNon(boolean condition,
FailureMsg msg) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
PRException.exceptionCaught(Consumer<PRException> consumer,
Function<FailureMsg,T> mapper) |
static void |
PRException.requireNon(boolean condition,
Supplier<FailureMsg> msg) |
| 构造器和说明 |
|---|
PRException(FailureMsg msg,
Throwable cause) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ClientFailureMsg |
interface |
ServerFailureMsg |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ClientFailure |
class |
ServerFailure |
| 限定符和类型 | 方法和说明 |
|---|---|
static FailureMsg |
FailureMsg.fail(int code,
String msg) |
static FailureMsg |
FailureMsg.fail(Throwable cause) |
Copyright © 2022. All rights reserved.