Examples of RoomDoesNotExistException


Examples of edu.drexel.cs544.mcmuc.util.RoomDoesNotExistException

        Integer p = roomNames.remove(roomName);
        if (p != null) {
            leaveRoom(p);
            this.alert("Left room: \"" + roomName + "\"");
        } else {
            throw new RoomDoesNotExistException(roomName);
        }
    }
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.util.RoomDoesNotExistException

        Room room = (Room) channels.get(roomNames.get(roomName));
        if (room != null) {
            room.setStatus(presence);
            this.alert("Set presence for \"" + room.getUserName() + "@" + roomName + "\" to \"" + presence.toString().toLowerCase() + "\"");
        } else {
            throw new RoomDoesNotExistException(roomName);
        }
    }
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.util.RoomDoesNotExistException

        Room room = (Room) channels.get(roomNames.get(roomName));
        if (room != null) {
            room.addKeyPair(publicKey, privateKey);
            this.alert("Added key pair for \"" + room.getUserName() + "@" + roomName + "\"");
        } else {
            throw new RoomDoesNotExistException(roomName);
        }
    }
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.util.RoomDoesNotExistException

        Room room = (Room) channels.get(roomNames.get(roomName));
        if (room != null) {
            room.removeKeyPair(publicKey);
            this.alert("Removed key pair for \"" + room.getUserName() + "@" + roomName + "\"");
        } else {
            throw new RoomDoesNotExistException(roomName);
        }
    }
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.util.RoomDoesNotExistException

        Room room = (Room) channels.get(roomNames.get(roomName));
        if (room != null) {
            room.send(message);
            this.output(message.getFrom() + "@" + roomName + ": " + (message.hasKey() ? "*encrypted*" : message.getBody())); // To create a new command prompt
        } else {
            throw new RoomDoesNotExistException(roomName);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.