Class InvalidChangeBatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.amazonaws.AmazonClientException
-
- com.amazonaws.AmazonServiceException
-
- com.amazonaws.services.route53.model.InvalidChangeBatchException
-
- All Implemented Interfaces:
Serializable
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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
-
Constructor Summary
Constructors Constructor Description InvalidChangeBatchException(String message)
Constructs a new InvalidChangeBatchException with the specified error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getMessages()
Descriptive message for the error response.void
setMessages(Collection<String> messages)
Descriptive message for the error response.InvalidChangeBatchException
withMessages(String... messages)
Descriptive message for the error response.InvalidChangeBatchException
withMessages(Collection<String> messages)
Descriptive message for the error response.-
Methods inherited from class com.amazonaws.AmazonServiceException
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
-
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidChangeBatchException
public InvalidChangeBatchException(String message)
Constructs a new InvalidChangeBatchException with the specified error message.- Parameters:
message
- Describes the error encountered.
-
-
Method Detail
-
getMessages
public List<String> getMessages()
Descriptive message for the error response.
- Returns:
- Descriptive message for the error response.
-
setMessages
public void setMessages(Collection<String> messages)
Descriptive message for the error response.
- Parameters:
messages
- Descriptive message for the error response.
-
withMessages
public InvalidChangeBatchException withMessages(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)
orwithMessages(java.util.Collection)
if you want to override the existing values.- Parameters:
messages
- Descriptive message for the error response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMessages
public InvalidChangeBatchException withMessages(Collection<String> messages)
Descriptive message for the error response.
- Parameters:
messages
- Descriptive message for the error response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-