类 Result<T>
java.lang.Object
com.alibaba.nacos.api.model.v2.Result<T>
- 所有已实现的接口:
Serializable
Response Result.
- 作者:
- dongyafei
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> Result<T> Failed return with errorCode and message.static <T> Result<T> Failed return with errorCode, message and data.static <T> Result<T> Failed return with code, message and data.Failed return with message and detail error information.getCode()getData()static <T> Result<T> success()Success return with nothing.static <T> Result<T> success(T data) Success return with data.toString()
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
code
-
message
-
data
-
-
构造器详细资料
-
Result
-
Result
public Result() -
Result
-
Result
-
-
方法详细资料
-
success
Success return with nothing.- 类型参数:
T- data type- 返回:
- Result
-
success
Success return with data.- 类型参数:
T- data type- 返回:
- Result
-
failure
Failed return with message and detail error information.- 返回:
- Result
-
failure
Failed return with errorCode and message.- 类型参数:
T- data type- 返回:
- Result
-
failure
Failed return with errorCode, message and data.- 类型参数:
T- data type- 返回:
- Result
-
failure
Failed return with code, message and data.- 类型参数:
T- data type- 参数:
code- error codemsg- error message- 返回:
- Result
-
toString
-
getCode
-
getMessage
-
getData
-