Class UnsupportedMediaTypeException

All Implemented Interfaces:
Serializable

public class UnsupportedMediaTypeException extends AmazonServiceException

The content type of the Invoke request body is not JSON.

See Also:
  • Constructor Details

    • UnsupportedMediaTypeException

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

    • setType

      public void setType(String type)
      Parameters:
      type -
    • getType

      public String getType()
      Returns:
    • withType

      public UnsupportedMediaTypeException withType(String type)
      Parameters:
      type -
      Returns:
      Returns a reference to this object so that method calls can be chained together.