public class CosClientException extends RuntimeException
CosServiceException,
Serialized Form| Constructor and Description |
|---|
CosClientException(String message)
Creates a new CosClientException with the specified message.
|
CosClientException(String message,
String errorCode,
Throwable t) |
CosClientException(String message,
Throwable t)
Creates a new CosClientException with the specified message, and root
cause.
|
CosClientException(Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode() |
boolean |
isRequestTimeout() |
boolean |
isRetryable()
Returns a hint as to whether it makes sense to retry upon this exception.
|
void |
setErrorCode(String errorCode) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CosClientException(String message, Throwable t)
message - An error message describing why this exception was thrown.t - The underlying cause of this exception.public CosClientException(String message)
message - An error message describing why this exception was thrown.public CosClientException(Throwable t)
public String getErrorCode()
public void setErrorCode(String errorCode)
public boolean isRetryable()
public boolean isRequestTimeout()
Copyright © 2023. All rights reserved.