Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.security.ui.admin / src / org / argeo / security / ui / admin / internal / parts / DefaultUserMainPage.java
index 306a872e799a55881b631a3c824a14d981717342..6529efe30597c22c02a1be8d76dee67a5f8a57ca 100644 (file)
@@ -23,7 +23,7 @@ import javax.jcr.RepositoryException;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.argeo.ArgeoException;
+import org.argeo.cms.CmsException;
 import org.argeo.jcr.ArgeoNames;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.ModifyEvent;
@@ -66,7 +66,7 @@ public class DefaultUserMainPage extends FormPage implements ArgeoNames {
                        createGeneralPart(form.getBody());
                        createPassworPart(form.getBody());
                } catch (RepositoryException e) {
-                       throw new ArgeoException("Cannot create form content", e);
+                       throw new CmsException("Cannot create form content", e);
                }
        }
 
@@ -118,7 +118,7 @@ public class DefaultUserMainPage extends FormPage implements ArgeoNames {
                                        if (log.isTraceEnabled())
                                                log.trace("General part committed");
                                } catch (RepositoryException e) {
-                                       throw new ArgeoException("Cannot commit", e);
+                                       throw new CmsException("Cannot commit", e);
                                }
                        }
                };
@@ -174,7 +174,7 @@ public class DefaultUserMainPage extends FormPage implements ArgeoNames {
                                        } else {
                                                password1.setText("");
                                                password2.setText("");
-                                               throw new ArgeoException("Passwords are not equals");
+                                               throw new CmsException("Passwords are not equals");
                                        }
                                }
                        }