function __construct(&$session, $name, $password) { try { parent::login($session, $name, $password); } catch (exception $e) { throw new Exception($e->getMessage()); } }