Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / AbstractCmsEntryPoint.java
index 311a8ff7cb8160a284b3db6d7d336194f89612e0..743a142a4430c4e4e7e2253ce012439a3c04ce0c 100644 (file)
@@ -19,7 +19,6 @@ import javax.servlet.http.HttpServletRequest;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.argeo.ArgeoException;
 import org.argeo.cms.auth.AuthConstants;
 import org.argeo.cms.auth.HttpRequestCallbackHandler;
 import org.argeo.eclipse.ui.specific.UiContext;
@@ -77,10 +76,10 @@ public abstract class AbstractCmsEntryPoint extends AbstractEntryPoint implement
                                loginContext = new LoginContext(AuthConstants.LOGIN_CONTEXT_ANONYMOUS, subject);
                                loginContext.login();
                        } catch (LoginException e1) {
-                               throw new ArgeoException("Cannot log as anonymous", e);
+                               throw new CmsException("Cannot log as anonymous", e);
                        }
                } catch (LoginException e) {
-                       throw new ArgeoException("Cannot initialize subject", e);
+                       throw new CmsException("Cannot initialize subject", e);
                }
                authChange(loginContext);