public class TableStoreException extends RuntimeException
TableStoreException represents the exception returned by TableStore.
RequestId: A unique ID assigned by TableStore to each request. If you need assistance from TableStore developers to investigate issues with slow requests or failed requests, please provide this ID.
TraceId: In the logs provided internally by the SDK, this ID tracks the execution information of various stages of a particular request, which can be used to trace logs for troubleshooting problems.
HttpStatus: The HTTP status code returned for this request.
| 构造器和说明 |
|---|
TableStoreException(String message,
String errorCode)
Constructor
|
TableStoreException(String message,
Throwable cause,
String errorCode,
String requestId,
int httpStatus)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getErrorCode()
Returns the string representation of the error code.
|
int |
getHttpStatus()
Returns the HTTP status code
|
String |
getRequestId()
Returns the Request ID.
|
String |
getTraceId()
Returns the TraceId.
|
void |
setTraceId(String traceId) |
String |
toString() |
public TableStoreException(String message, Throwable cause, String errorCode, String requestId, int httpStatus)
message - Error messagecause - Cause of the errorerrorCode - Error coderequestId - RequestIdhttpStatus - HTTP status codepublic String getErrorCode()
public String getRequestId()
public String getTraceId()
public void setTraceId(String traceId)
public int getHttpStatus()
Copyright © 2025. All Rights Reserved.