public class AError
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AKErrorInvokeNetError
网络错误
|
static int |
AKErrorInvokeServerError
业务网关错误
|
static int |
AKErrorLoginTokenIllegalError
登录 token失效 , session过期
|
static int |
AKErrorServerBusinessError
业务错误
|
static int |
AKErrorSuccess
业务成功
|
static int |
AKErrorUnknownError
客户端内部错误
|
static java.lang.String |
ERR_DOMAIN_NAME_ALINK |
Constructor and Description |
---|
AError() |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
返回错误码
|
java.lang.String |
getDomain()
获取 Domain
|
java.lang.String |
getMsg()
返回错误描述
|
java.lang.Object |
getOriginResponseObject()
获取原始响应对象
|
int |
getSubCode()
返回子错误码
|
java.lang.String |
getSubDomain()
获取 Sub Domain
|
java.lang.String |
getSubMsg()
返回子错误描述
|
void |
setCode(int code)
设置 Code
|
void |
setDomain(java.lang.String domain)
设置 Domain
|
void |
setMsg(java.lang.String msg)
设置 Message
|
void |
setOriginResponseObject(java.lang.Object originResponseObj)
设置原始响应对象
|
void |
setSubCode(int subCode)
设置 SubCode
|
void |
setSubDomain(java.lang.String subDomain)
设置 SubDomain
|
void |
setSubMsg(java.lang.String subMsg)
设置Sub Message
|
public static final java.lang.String ERR_DOMAIN_NAME_ALINK
public static final int AKErrorSuccess
public static final int AKErrorUnknownError
public static final int AKErrorInvokeNetError
public static final int AKErrorInvokeServerError
public static final int AKErrorServerBusinessError
public static final int AKErrorLoginTokenIllegalError
public void setDomain(java.lang.String domain)
domain
- 错误域,默认为 alinkErrorDomainpublic void setCode(int code)
code
- 错误码public void setMsg(java.lang.String msg)
msg
- public void setSubDomain(java.lang.String subDomain)
subDomain
- public void setSubCode(int subCode)
subCode
- public void setSubMsg(java.lang.String subMsg)
subMsg
- public java.lang.String getDomain()
public int getCode()
public java.lang.String getMsg()
public java.lang.String getSubDomain()
public int getSubCode()
public java.lang.String getSubMsg()
public java.lang.Object getOriginResponseObject()
public void setOriginResponseObject(java.lang.Object originResponseObj)
originResponseObj
-