Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / auth / LocaleChoice.java
index 9ec9f7a0b44324f6fa4931c5c35f1e78343077ba..a23348fac51eae9dce9a062e04a91e0d17ebf82a 100644 (file)
@@ -22,7 +22,7 @@ import java.util.Locale;
 
 import javax.security.auth.callback.LanguageCallback;
 
-import org.argeo.ArgeoException;
+import org.argeo.cms.CmsException;
 
 /** Choose in a list of locales. TODO: replace with {@link LanguageCallback} */
 public class LocaleChoice {
@@ -45,7 +45,7 @@ public class LocaleChoice {
                                        defaultIndex = i;
 
                if (defaultIndex == null)
-                       throw new ArgeoException("Default locale " + defaultLocale + " is not in available locales " + locales);
+                       throw new CmsException("Default locale " + defaultLocale + " is not in available locales " + locales);
                this.defaultIndex = defaultIndex;
 
                this.selectedIndex = defaultIndex;