public class TableStoreException extends RuntimeException
TableStoreException
表示TableStore返回的异常。
RequestId: TableStore为每个请求分配的唯一ID,若需要TableStore开发协助调查慢请求或者失败请求等问题,请提供该ID。
TraceId: 在SDK内部提供的日志中会追踪某个请求的各个阶段的执行信息,可以通过这个ID来追踪日志排查问题。
HttpStatus: 本次请求的Http返回码
构造器和说明 |
---|
TableStoreException(String message,
Throwable cause,
String errorCode,
String requestId,
int httpStatus)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
String |
getErrorCode()
返回错误代码的字符串表示。
|
int |
getHttpStatus()
返回Http状态码
|
String |
getRequestId()
返回Request标识。
|
String |
getTraceId()
返回TraceId。
|
void |
setTraceId(String traceId) |
String |
toString() |
public String getErrorCode()
public String getRequestId()
public String getTraceId()
public void setTraceId(String traceId)
public int getHttpStatus()
Copyright © 2018. All Rights Reserved.