Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / auth / ConsoleCallbackHandler.java
index 4edcb6341f27d35a9a319e49af3a6ede27420a6f..44bc331592160ebc3a79f0fefdcc40790d71a421 100644 (file)
@@ -13,7 +13,7 @@ import javax.security.auth.callback.PasswordCallback;
 import javax.security.auth.callback.TextOutputCallback;
 import javax.security.auth.callback.UnsupportedCallbackException;
 
-import org.argeo.ArgeoException;
+import org.argeo.cms.CmsException;
 
 /** Callback handler to be used with a command line UI. */
 public class ConsoleCallbackHandler implements CallbackHandler {
@@ -23,7 +23,7 @@ public class ConsoleCallbackHandler implements CallbackHandler {
                        UnsupportedCallbackException {
                Console console = System.console();
                if (console == null)
-                       throw new ArgeoException("No console available");
+                       throw new CmsException("No console available");
 
                PrintWriter writer = console.writer();
                for (int i = 0; i < callbacks.length; i++) {