Class HttpException.UnsupportedMediaTypeException

All Implemented Interfaces:
Serializable
Enclosing class:
HttpException

public static final class HttpException.UnsupportedMediaTypeException extends HttpException
Exception that causes a 415 response.
See Also:
  • Constructor Details

    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException(String message)
    • UnsupportedMediaTypeException

      public UnsupportedMediaTypeException(String message, Throwable cause)
  • Method Details

    • getResponseCodeString

      public String getResponseCodeString()
      Description copied from class: HttpException
      Returns the string associated with a particular response code. Unlike Throwable.getMessage(), which is meant to describe the circumstances under which this particular exception occurred, this method always returns the same string (e.g. "Not Found" for a 400 error), and so should always be the same for a given subclass of HttpException.
      Overrides:
      getResponseCodeString in class HttpException