public class CosXmlServiceException extends QCloudServiceException
服务端异常
是客户端和 COS 服务端交互正常,但操作 COS 资源失败。如客户端访问一个不存在 Bucket ,删除一个不存在的文件,没有权限进行某个操作等.
请参考:服务端异常
ERR0R_REQUEST_IS_EXPIRED, ERR0R_REQUEST_TIME_TOO_SKEWED
构造器和说明 |
---|
CosXmlServiceException(QCloudServiceException qcloudServiceException) |
CosXmlServiceException(java.lang.String httpMsg) |
CosXmlServiceException(java.lang.String errorMessage,
java.lang.Exception cause) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getHttpMessage() |
java.lang.String |
getMessage()
Returns the detail message string of this throwable.
|
java.lang.String |
toString()
Returns a short description of this throwable.
|
getErrorCode, getErrorMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setRequestId, setServiceName, setStatusCode
public CosXmlServiceException(java.lang.String httpMsg)
public CosXmlServiceException(java.lang.String errorMessage, java.lang.Exception cause)
public CosXmlServiceException(QCloudServiceException qcloudServiceException)
public java.lang.String getHttpMessage()
public java.lang.String getMessage()
java.lang.Throwable
getMessage
在类中 QCloudServiceException
Throwable
instance
(which may be null
).public java.lang.String toString()
java.lang.Throwable
Throwable.getLocalizedMessage()
method
getLocalizedMessage
returns null
, then just
the class name is returned.toString
在类中 java.lang.Throwable