Improve CMS security layer documentation.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / CmsSessionId.java
index b71eb4fc786a589283ac271dde899e80c05dfabd..cc435aeb8f7b568e6c59a1be69f3cb46f53ac07c 100644 (file)
@@ -4,8 +4,6 @@ import java.util.UUID;
 
 import javax.security.auth.Subject;
 
-import org.argeo.cms.CmsException;
-
 /**
  * The ID of a {@link CmsSession}, which must be available in the private
  * credentials of an authenticated {@link Subject}.
@@ -15,7 +13,7 @@ public class CmsSessionId {
 
        public CmsSessionId(UUID value) {
                if (value == null)
-                       throw new CmsException("value cannot be null");
+                       throw new IllegalArgumentException("Value cannot be null");
                this.uuid = value;
        }