public class InvalidChangeBatchException extends AmazonServiceException
This error contains a list of one or more error messages. Each error message indicates one error in the change batch. For more information, see Example InvalidChangeBatch Errors.
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
messages
Descriptive message for the error response.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
InvalidChangeBatchException(java.lang.String message)
Constructs a new InvalidChangeBatchException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getMessages()
Descriptive message for the error response.
|
void |
setMessages(java.util.Collection<java.lang.String> messages)
Descriptive message for the error response.
|
InvalidChangeBatchException |
withMessages(java.util.Collection<java.lang.String> messages)
Descriptive message for the error response.
|
InvalidChangeBatchException |
withMessages(java.lang.String... messages)
Descriptive message for the error response.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
private static final long serialVersionUID
private SdkInternalList<java.lang.String> messages
Descriptive message for the error response.
public InvalidChangeBatchException(java.lang.String message)
message
- Describes the error encountered.public java.util.List<java.lang.String> getMessages()
Descriptive message for the error response.
public void setMessages(java.util.Collection<java.lang.String> messages)
Descriptive message for the error response.
messages
- Descriptive message for the error response.public InvalidChangeBatchException withMessages(java.lang.String... messages)
Descriptive message for the error response.
NOTE: This method appends the values to the existing list (if
any). Use setMessages(java.util.Collection)
or
withMessages(java.util.Collection)
if you want to override the
existing values.
messages
- Descriptive message for the error response.public InvalidChangeBatchException withMessages(java.util.Collection<java.lang.String> messages)
Descriptive message for the error response.
messages
- Descriptive message for the error response.