| 限定符和类型 | 方法和说明 |
|---|---|
ErrorCode |
Result.getErrorCode() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Result |
Result.getFailed(ErrorCode errorCode) |
static Result |
Result.getSuccess(ErrorCode successCode) |
void |
Result.setErrorCode(ErrorCode errorCode) |
| 构造器和说明 |
|---|
Result(boolean success,
ErrorCode errorCode) |
Result(boolean success,
ErrorCode errorCode,
T data) |
| 限定符和类型 | 字段和说明 |
|---|---|
static ErrorCode |
CommonCodeConstanst.CMD_NOTFOUND |
static ErrorCode |
CommonCodeConstanst.CONFIG_ERROR |
static ErrorCode |
CommonCodeConstanst.DATA_ERROR |
static ErrorCode |
CommonCodeConstanst.DATA_NOT_FOUND |
static ErrorCode |
CommonCodeConstanst.DATA_PARSE_ERROR |
static ErrorCode |
CommonCodeConstanst.DATA_SIZE_ERROR |
static ErrorCode |
CommonCodeConstanst.DATA_SIZE_ERROR_EXTEND |
static ErrorCode |
CommonCodeConstanst.DB_DELETE_ERROR |
static ErrorCode |
CommonCodeConstanst.DB_QUERY_ERROR |
static ErrorCode |
CommonCodeConstanst.DB_SAVE_BATCH_ERROR |
static ErrorCode |
CommonCodeConstanst.DB_SAVE_ERROR |
static ErrorCode |
CommonCodeConstanst.DB_TABLE_CREATE_ERROR |
static ErrorCode |
CommonCodeConstanst.DB_TABLE_EXIST |
static ErrorCode |
CommonCodeConstanst.DB_TABLE_NOT_EXIST |
static ErrorCode |
CommonCodeConstanst.DB_UPDATE_ERROR |
static ErrorCode |
CommonCodeConstanst.DESERIALIZE_ERROR |
static ErrorCode |
CommonCodeConstanst.DOWNLOAD_VERSION_FAILD |
static ErrorCode |
CommonCodeConstanst.FAILED |
static ErrorCode |
CommonCodeConstanst.FILE_OPERATION_FAILD |
static ErrorCode |
CommonCodeConstanst.IO_ERROR |
static ErrorCode |
CommonCodeConstanst.LANGUAGE_CANNOT_SET_NULL |
static ErrorCode |
CommonCodeConstanst.NULL_PARAMETER |
static ErrorCode |
CommonCodeConstanst.PARAMETER_ERROR |
static ErrorCode |
CommonCodeConstanst.PARSE_JSON_FAILD |
static ErrorCode |
CommonCodeConstanst.REQUEST_DENIED |
static ErrorCode |
CommonCodeConstanst.REQUEST_TIME_OUT |
static ErrorCode |
CommonCodeConstanst.RPC_REQUEST_FAILD |
static ErrorCode |
CommonCodeConstanst.SERIALIZE_ERROR |
static ErrorCode |
CommonCodeConstanst.SIGNATURE_ERROR |
static ErrorCode |
CommonCodeConstanst.SUCCESS |
static ErrorCode |
CommonCodeConstanst.SYS_UNKOWN_EXCEPTION |
static ErrorCode |
CommonCodeConstanst.THREAD_REPETITION |
| 限定符和类型 | 方法和说明 |
|---|---|
static ErrorCode |
ErrorCode.init(String code) |
| 限定符和类型 | 方法和说明 |
|---|---|
ErrorCode |
NulsRuntimeException.getErrorCode() |
ErrorCode |
NulsException.getErrorCode() |
| 构造器和说明 |
|---|
BeanStatusException(ErrorCode message) |
BeanStatusException(ErrorCode message,
Throwable cause) |
BeanStatusException(ErrorCode message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
NulsException(ErrorCode message)
Constructs a new exception with the specified detail validator.
|
NulsException(ErrorCode errorCode,
String message) |
NulsException(ErrorCode message,
Throwable cause)
Constructs a new exception with the specified detail validator and
cause.
|
NulsException(ErrorCode message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new exception with the specified detail validator,
cause, suppression enabled or disabled, and writable stack
trace enabled or disabled.
|
NulsRuntimeException(ErrorCode errorCode)
Constructs a new exception with the specified detail validator.
|
NulsRuntimeException(ErrorCode errorCode,
String message)
Constructs a new exception with the specified detail validator.
|
NulsRuntimeException(ErrorCode errorCode,
String message,
Throwable cause)
Constructs a new exception with the specified detail validator and
cause.
|
NulsRuntimeException(ErrorCode errorCode,
Throwable cause)
Constructs a new exception with the specified detail validator and
cause.
|
NulsRuntimeException(ErrorCode message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new exception with the specified detail validator,
cause, suppression enabled or disabled, and writable stack
trace enabled or disabled.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Response |
BaseCmd.failed(ErrorCode errorCode)
返回预定义的失败对象
Returns the predefined failed object
|
protected Response |
BaseCmd.failed(ErrorCode errorCode,
String errMsg)
预定义失败对象,同时带有自定义错误消息
Predefined failed object with a custom error message
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Response |
MessageUtil.newFailResponse(String requestId,
ErrorCode errorCode)
构造一个执行失败的Response对象
Constructing a new Response object
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RpcResult |
RpcResult.failed(ErrorCode errorCode) |
static RpcResult |
RpcResult.failed(ErrorCode errorCode,
String data) |
Copyright © 2021. All rights reserved.