本文整理汇总了Java中com.skype.SkypeException.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java SkypeException.getMessage方法的具体用法?Java SkypeException.getMessage怎么用?Java SkypeException.getMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.skype.SkypeException
的用法示例。
在下文中一共展示了SkypeException.getMessage方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
if (outputChat == null)
throw new NullOutputChatException("Empty output chat.");
try {
if (id.equals("")) {
outputChat.send(getSyntax());
return;
}
if (currentAdmins.add(id))
outputChat.send("Admin successfully added");
else
outputChat.send("All ready exists.");
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例2: execute
import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws NullOutputChatException {
if (outputChat == null)
throw new NullOutputChatException("Empty output chat.");
try {
if (userInfo != null)
outputChat.send(printInfo());
else
outputChat.send(getSyntax());
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例3: execute
import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
if (outputChat == null)
throw new NullOutputChatException("Empty output chat.");
try {
String result = commandInformations
.get(commandNameToFindHelp.toLowerCase());
if (result == null)
outputChat.send(getSyntax());
else
outputChat.send(result);
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例4: execute
import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
try{
if(!canBeExecuted()){
return;
}
if (currentAdmins.remove(userToRemovedID))
outputChat.send("Admin removed.");
else
outputChat.send("Can not find that user.");
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例5: printToChat
import com.skype.SkypeException; //导入方法依赖的package包/类
private void printToChat(String message) {
try {
outputChat.send(message);
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例6: execute
import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
if (outputChat == null)
throw new NullOutputChatException();
try {
for (String admin : currentAdmins) {
outputChat.send(admin + "\r\n");
}
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例7: execute
import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
if (outputChat == null)
throw new NullOutputChatException("Empty output chat.");
try {
for (String command : commandsName) {
outputChat.send(command);
}
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例8: execute
import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws NullOutputChatException {
try {
if (!canBeExecuted())
return;
for (int i = 0; i < timesToBeRepeated; i++)
outputChat.send(text);
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例9: defineOutputChat
import com.skype.SkypeException; //导入方法依赖的package包/类
private void defineOutputChat() {
try {
if (receiver != null)
outputChat = receiver.chat();
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
示例10: clearMessages
import com.skype.SkypeException; //导入方法依赖的package包/类
/**
* This method is responsible for removing messages which are no longer editable.
*/
private void clearMessages() {
Set<ChatMessage> keys = messages.keySet();
for (ChatMessage message : keys) {
try {
if (!message.isEditable())
messages.remove(message);
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}
}
示例11: initiateUserInformations
import com.skype.SkypeException; //导入方法依赖的package包/类
/**
* Initiates each user's informations.
*/
private void initiateUserInformations() {
try {
users = new ConcurrentHashMap<String, UserInformation>(
group.getAllMembers().length + 1);
for (User u : group.getAllMembers()) {
users.put(u.getId(), new UserInformation(u));
}
} catch (SkypeException e) {
new WarningPopup(e.getMessage());
}
}