Trigger error message by throwing OperationFailedException to explain

that joining chat room failed.
fix-message-formatting
Danny van Heumen 11 years ago
parent 43783abe0b
commit 262d2bfe1d

@ -170,7 +170,19 @@ public ChatRoom createChatRoom(
throws OperationFailedException,
OperationNotSupportedException
{
return findOrCreateRoom(roomName);
try
{
return findOrCreateRoom(roomName);
}
catch (IllegalArgumentException e)
{
String message =
IrcActivator.getResources().getI18NString(
"service.gui.CREATE_CHAT_ROOM_ERROR", new String[]
{ roomName });
throw new OperationFailedException(message,
OperationFailedException.ILLEGAL_ARGUMENT, e);
}
}
/**

Loading…
Cancel
Save