Class UnsupportedMediaTypeException

All Implemented Interfaces:
Serializable

public class UnsupportedMediaTypeException extends AxiomException
A request body whose content type or charset no installed codec accepts (415).
See Also:
  • Constructor Details

    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException()
      Creates the exception with code unsupported_media_type.
    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException(String code)
      Creates the exception with a specific code, such as missing_content_type.
      Parameters:
      code - safe machine-readable code