@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()
Details about the error.
|
void |
setErrorDetails(Collection<ErrorDetail> errorDetails)
Details about the error.
|
BadRequestException |
withErrorDetails(Collection<ErrorDetail> errorDetails)
Details about the error.
|
BadRequestException |
withErrorDetails(ErrorDetail... errorDetails)
Details about the error.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, 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
- Details about the error.public 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
- Details about the error.public BadRequestException withErrorDetails(Collection<ErrorDetail> errorDetails)
errorDetails
- Details about the error.