Since: 3.0.0
Inheritance: extends Exceptio\Exception
 /**
  * Returns the module with the given ID.
  *
  * @since 3.0.0
  *
  * @param string $id Module ID.
  *
  * @return Module Module object.
  *
  * @throws InvalidModuleException if there is no module with the given ID.
  */
 public function get_module($id)
 {
     if (!$this->has_module($id)) {
         throw InvalidModuleException::for_id($id, 'read');
     }
     return $this->modules[$id];
 }