Class UnknownContentTypeException

    • Constructor Detail

      • UnknownContentTypeException

        public UnknownContentTypeException​(Type targetType,
                                           MediaType contentType,
                                           int statusCode,
                                           String statusText,
                                           HttpHeaders responseHeaders,
                                           byte[] responseBody)
        Construct a new instance of with the given response data.
        Parameters:
        targetType - the expected target type
        contentType - the content type of the response
        statusCode - the raw status code value
        statusText - the status text
        responseHeaders - the response headers (may be null)
        responseBody - the response body content (may be null)