*
* @throws \Drupal\Core\Extension\ExtensionNameLengthException
* Thrown when the theme name is to long.
+ *
+ * @throws \Drupal\Core\Extension\Exception\UnknownExtensionException
+ * Thrown when the theme does not exist.
*/
public function install(array $theme_list, $install_dependencies = TRUE);
* @param array $theme_list
* The themes to uninstall.
*
+ * @throws \Drupal\Core\Extension\Exception\UnknownExtensionException
+ * Thrown when trying to uninstall a theme that was not installed.
+ *
* @throws \InvalidArgumentException
- * Thrown when you uninstall an not installed theme.
+ * Thrown when trying to uninstall the default theme or the admin theme.
*
* @see hook_themes_uninstalled()
*/