| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.api.model.v2 |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Result<T> |
Result.failure(ErrorCode errorCode)
Failed return with errorCode and message.
|
static <T> Result<T> |
Result.failure(ErrorCode errorCode,
T data)
Failed return with errorCode, message and data.
|
static Result<String> |
Result.failure(String message)
Failed return with message and detail error information.
|
static <T> Result<T> |
Result.success()
Success return with nothing.
|
static <T> Result<T> |
Result.success(T data)
Success return with data.
|
Copyright © 2018–2024 Alibaba Group. All rights reserved.