Refactor monitor and exceptions
[lgpl/argeo-commons.git] / org.argeo.util / src / org / argeo / util / security / SimplePrincipal.java
index 03c573e2560a2175bcceefbc8aa1e01e38563693..29b8626e16bcc581d132f9155b83b0ff443584c3 100644 (file)
@@ -17,7 +17,7 @@ package org.argeo.util.security;
 
 import java.security.Principal;
 
-import org.argeo.ArgeoException;
+import org.argeo.util.internal.UtilsException;
 
 /** Canonical implementation of a {@link Principal} */
 public class SimplePrincipal implements Principal {
@@ -25,7 +25,7 @@ public class SimplePrincipal implements Principal {
 
        public SimplePrincipal(String name) {
                if (name == null)
-                       throw new ArgeoException("Principal name cannot be null");
+                       throw new UtilsException("Principal name cannot be null");
                this.name = name;
        }