def METHOD_NAME(exc: ValueError, location: str, actual: str, defined: str) -> NoReturn:
    message = (
        f"{location} has a malformed media type: `{actual}`. Please, ensure that this media type conforms to "
        f"the `type-name/subtype-name` format defined by RFC 6838."
    )
    raise get_malformed_media_type_error(message)(
        message, context=failures.MalformedMediaType(actual=actual, defined=defined)
    ) from exc