public function __construct($setId, $overridesActiveField = false) { try { parent::__construct($setId, $overridesActiveField); } catch (Zend_Exception $e) { throw new Application_Model_Exception("Can't build a new " . __CLASS__, null, $e); } }
public function __construct($setId, $locale, $overridesActiveField = false) { $this->_localeCode = $locale; if (empty($this->_localeCode)) { throw new Application_Model_Exception("Locale Code is empty"); } try { parent::__construct($setId, $overridesActiveField); } catch (Zend_Exception $e) { throw new Application_Model_Exception("Can't build a new " . __CLASS__, null, $e); } }