@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BadRequestException extends AWSGreengrassException
AmazonServiceException.ErrorType
Constructor and Description |
---|
BadRequestException(String message)
Constructs a new BadRequestException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
List<ErrorDetail> |
getErrorDetails()
Error Details
|
void |
setErrorDetails(Collection<ErrorDetail> errorDetails)
Error Details
|
BadRequestException |
withErrorDetails(Collection<ErrorDetail> errorDetails)
Error Details
|
BadRequestException |
withErrorDetails(ErrorDetail... errorDetails)
Error Details
|
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 BadRequestException(String message)
message
- Describes the error encountered.public List<ErrorDetail> getErrorDetails()
public void setErrorDetails(Collection<ErrorDetail> errorDetails)
errorDetails
- Error Detailspublic BadRequestException withErrorDetails(ErrorDetail... errorDetails)
NOTE: This method appends the values to the existing list (if any). Use
setErrorDetails(java.util.Collection)
or withErrorDetails(java.util.Collection)
if you want to
override the existing values.
errorDetails
- Error Detailspublic BadRequestException withErrorDetails(Collection<ErrorDetail> errorDetails)
errorDetails
- Error DetailsCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.