language : update with \Exception

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4683 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-10-31 09:39:45 +00:00
parent 67a8f982cc
commit c3ee849ad5

View File

@@ -1,7 +1,8 @@
<?php
/** DomFramework
@package domframework
@author Dominique Fournier <dominique@fournier38.fr> */
* @package domframework
* @author Dominique Fournier <dominique@fournier38.fr>
*/
/** Language class : change the messages */
class language
@@ -358,7 +359,7 @@ class language
case "en_US": return dgettext("domframework", "English (US)");
case "en_GB": return dgettext("domframework", "English (GB)");
default:
throw new Exception ("No language available for '$languageCode'", 500);
throw new \Exception ("No language available for '$languageCode'", 500);
}
}