mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
s/MucConfigurationNotSupported/MucConfigurationNotSupportedException/
This commit is contained in:
parent
ff72ea320c
commit
9e351f0535
2 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ import org.jivesoftware.smack.SmackException.NoResponseException;
|
|||
import org.jivesoftware.smack.SmackException.NotConnectedException;
|
||||
import org.jivesoftware.smack.XMPPException.XMPPErrorException;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smackx.muc.MultiUserChatException.MucConfigurationNotSupported;
|
||||
import org.jivesoftware.smackx.muc.MultiUserChatException.MucConfigurationNotSupportedException;
|
||||
import org.jivesoftware.smackx.xdata.Form;
|
||||
import org.jivesoftware.smackx.xdata.FormField;
|
||||
import org.jxmpp.jid.Jid;
|
||||
|
@ -97,9 +97,9 @@ public class MucConfigFormManager {
|
|||
return owners != null;
|
||||
}
|
||||
|
||||
public MucConfigFormManager setRoomOwners(Collection<? extends Jid> newOwners) throws MucConfigurationNotSupported {
|
||||
public MucConfigFormManager setRoomOwners(Collection<? extends Jid> newOwners) throws MucConfigurationNotSupportedException {
|
||||
if (!supportsRoomOwners()) {
|
||||
throw new MucConfigurationNotSupported(MUC_ROOMCONFIG_ROOMOWNERS);
|
||||
throw new MucConfigurationNotSupportedException(MUC_ROOMCONFIG_ROOMOWNERS);
|
||||
}
|
||||
owners.clear();
|
||||
owners.addAll(newOwners);
|
||||
|
|
|
@ -72,14 +72,14 @@ public abstract class MultiUserChatException extends SmackException {
|
|||
/**
|
||||
* Thrown if the MUC room does not support the requested configuration option.
|
||||
*/
|
||||
public static class MucConfigurationNotSupported extends MultiUserChatException {
|
||||
public static class MucConfigurationNotSupportedException extends MultiUserChatException {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public MucConfigurationNotSupported(String configString) {
|
||||
public MucConfigurationNotSupportedException(String configString) {
|
||||
super("The MUC configuration '" + configString + "' is not supported by the MUC service");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue