public class ErrorInfo
extends java.lang.Object
IDevListener.onFail(Object, ErrorInfo)
Constructor and Description |
---|
ErrorInfo(AError error) |
ErrorInfo(int errorCode,
java.lang.String errorMsg)
错误结构构造函数
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
获取错误号
|
java.lang.String |
getErrorMsg()
获取错误描述
|
boolean |
isSuccess()
判断是否成功
|
void |
setErrorCode(int errorCode)
设置错误号
|
void |
setErrorMsg(java.lang.String errorMsg)
修改错误描述
|
java.lang.String |
toString() |
public ErrorInfo(int errorCode, java.lang.String errorMsg)
errorCode
- 错误号errorMsg
- 错误描述public ErrorInfo(AError error)
public boolean isSuccess()
public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
- 错误号, 请参见ErrorCode
public java.lang.String getErrorMsg()
public void setErrorMsg(java.lang.String errorMsg)
errorMsg
- 错误描述public java.lang.String toString()
toString
in class java.lang.Object