public class OdpsException extends Exception
| Constructor and Description |
|---|
OdpsException() |
OdpsException(Exception e) |
OdpsException(String msg) |
OdpsException(String code,
String msg) |
OdpsException(String code,
String msg,
Throwable t) |
OdpsException(String msg,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
获取错误码
|
String |
getRequestId()
获取 失败请求的 RequestID, 如果不是网络请求 返回 null
|
Integer |
getStatus()
获得网络状态
|
void |
setRequestId(String requestId)
设置 失败请求的 RequestID
|
void |
setStatus(Integer status)
设置网络状态
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic OdpsException()
public OdpsException(String msg)
public OdpsException(Exception e)
public String getRequestId()
public void setRequestId(String requestId)
requestId - public void setStatus(Integer status)
status - public Integer getStatus()
public String getErrorCode()
Copyright © 2019 Alibaba Cloud Computing. All rights reserved.