import java.io.Serializable;
import javax.ejb.Remote;
-import org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException;
+import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
+import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
/**
* An interface for user beans
* <p>
* @param user Initial customer instance
* @return Prepared Customer instance
- * @throws org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException If the user is already registered.
+ * @throws org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException If the user's user name is already registered.
+ * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException If the user's email address is already registered.
*/
- public User registerUser (final User user) throws UserAlreadyRegisteredException;
+ public User registerUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException;
}