Module io.jooby

Class UnsupportedMediaType

All Implemented Interfaces:
Serializable

public class UnsupportedMediaType extends StatusCodeException
Whether there is no decoder for the requested Content-Type.
Since:
2.4.1
Author:
edgar
See Also:
  • Constructor Details

    • UnsupportedMediaType

      public UnsupportedMediaType(@Nullable String type)
      Unsupported media type.
      Parameters:
      type - Content Type. Optional.
  • Method Details

    • getContentType

      @Nullable public String getContentType()
      Content type.
      Returns:
      Content type.