* @return \Drupal\Core\Extension\Extension
* An extension object.
*
- * @throws \InvalidArgumentException
+ * @throws \Drupal\Core\Extension\Exception\UnknownExtensionException
* Thrown when the requested module does not exist.
*/
public function getModule($name);