@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceException extends AmazonLightsailException
A general service exception.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ServiceException(String message)
Constructs a new ServiceException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
String |
getDocs() |
String |
getTip() |
void |
setCode(String code) |
void |
setDocs(String docs) |
void |
setTip(String tip) |
ServiceException |
withCode(String code) |
ServiceException |
withDocs(String docs) |
ServiceException |
withTip(String tip) |
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 ServiceException(String message)
message
- Describes the error encountered.public void setCode(String code)
code
- public String getCode()
public ServiceException withCode(String code)
code
- public void setDocs(String docs)
docs
- public String getDocs()
public ServiceException withDocs(String docs)
docs
- public void setTip(String tip)
tip
- public String getTip()
public ServiceException withTip(String tip)
tip
- Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.