public class Code extends Base implements EmptyBase
| 构造器和说明 |
|---|
Code(Code code,
String message) |
Code(int code,
int subCode,
String message,
String attached) |
Code(int code,
String message) |
Code(int code,
String message,
String attached) |
| 限定符和类型 | 方法和说明 |
|---|---|
Code |
attached(String attached) |
DartException |
exception() |
DartException |
exception(String attached) |
DartException |
exception(Throwable error) |
String |
getAttached() |
Integer |
getCode() |
String |
getMessage() |
String |
getReason() |
String |
getSolution() |
Integer |
getSubCode() |
boolean |
isEmpty() |
Code |
reason(String reason) |
Result |
result() |
<T> Result<T> |
result(T data) |
void |
setAttached(String attached) |
void |
setCode(Integer code) |
void |
setMessage(String message) |
void |
setReason(String reason) |
void |
setSolution(String solution) |
void |
setSubCode(Integer subCode) |
Code |
solution(String solution) |
Code |
subCode(int subCode) |
public Code(int code,
String message)
public Code subCode(int subCode)
public DartException exception()
public DartException exception(String attached)
public DartException exception(Throwable error)
public <T> Result<T> result(T data)
public Result result()
public Integer getCode()
public void setCode(Integer code)
public Integer getSubCode()
public void setSubCode(Integer subCode)
public String getMessage()
public void setMessage(String message)
public String getAttached()
public void setAttached(String attached)
public String getReason()
public void setReason(String reason)
public String getSolution()
public void setSolution(String solution)
Copyright © 2022. All rights reserved.