public class CosServiceExceptionBuilder extends Object
构造器和说明 |
---|
CosServiceExceptionBuilder() |
限定符和类型 | 方法和说明 |
---|---|
void |
addAdditionalDetail(String key,
String detail)
Adds an entry to the additional information map.
|
CosServiceException |
build()
Creates a new CosServiceException object with the values set.
|
Map<String,String> |
getAdditionalDetails()
Returns any additional information retrieved in the error response.
|
String |
getErrorCode() |
String |
getErrorMessage()
Returns the human-readable error message provided by the service
|
String |
getErrorResponseXml()
Returns the original error response XML received from Qcloud COS
|
String |
getRequestId() |
int |
getStatusCode()
Returns the HTTP status code that was returned with this service exception.
|
String |
getTraceId()
Gets Qcloud COS's extended request ID.
|
void |
setAdditionalDetails(Map<String,String> additionalDetails)
Sets additional information about the response.
|
void |
setErrorCode(String errorCode) |
void |
setErrorMessage(String errorMessage)
Sets the human-readable error message provided by the service
|
void |
setErrorResponseXml(String errorResponseXml)
Sets the error response XML received from Cos
|
void |
setRequestId(String requestId) |
void |
setStatusCode(int statusCode)
Sets the HTTP status code that was returned with this service exception.
|
void |
setTraceId(String traceId) |
public String getRequestId()
public void setRequestId(String requestId)
public void setErrorCode(String errorCode)
public String getErrorCode()
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
public void setStatusCode(int statusCode)
statusCode
- The HTTP status code that was returned with this service exception.public int getStatusCode()
public String getTraceId()
public void setTraceId(String traceId)
public Map<String,String> getAdditionalDetails()
public void setAdditionalDetails(Map<String,String> additionalDetails)
public void addAdditionalDetail(String key, String detail)
public String getErrorResponseXml()
public void setErrorResponseXml(String errorResponseXml)
public CosServiceException build()
Copyright © 2019. All rights reserved.