* @return array
* List of translatable strings.
*
- * @throws \Exception
+ * @throws \CRM_Core_Exception
*/
public function get($bucket, $file, $format) {
// array($file => array(...strings...))
* Type of file (e.g. 'text/javascript', 'text/html').
* @return array
* List of translatable strings.
- * @throws Exception
+ *
+ * @throws CRM_Core_Exception
*/
public function extract($file, $format) {
switch ($format) {
return CRM_Utils_JS::parseStrings(file_get_contents($file));
default:
- throw new Exception("Cannot extract strings: Unrecognized file type.");
+ throw new CRM_Core_Exception('Cannot extract strings: Unrecognized file type.');
}
}