@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceUnavailableException extends AmazonGlacierException
Returned if the service cannot complete the request.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ServiceUnavailableException(String message)
Constructs a new ServiceUnavailableException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
500 Internal Server Error
|
String |
getType()
Server
|
void |
setCode(String code)
500 Internal Server Error
|
void |
setType(String type)
Server
|
ServiceUnavailableException |
withCode(String code)
500 Internal Server Error
|
ServiceUnavailableException |
withType(String type)
Server
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServiceUnavailableException(String message)
message
- Describes the error encountered.public void setType(String type)
Server
type
- Serverpublic String getType()
Server
public ServiceUnavailableException withType(String type)
Server
type
- Serverpublic void setCode(String code)
500 Internal Server Error
code
- 500 Internal Server Errorpublic String getCode()
500 Internal Server Error
public ServiceUnavailableException withCode(String code)
500 Internal Server Error
code
- 500 Internal Server ErrorCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.