Class 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:
  • Constructor Details

    • InvalidChangeBatchException

      public InvalidChangeBatchException(String message)
      Constructs a new InvalidChangeBatchException with the specified error message.
      Parameters:
      message - Describes the error encountered.
  • Method Details

    • 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) or withMessages(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.