Implement help command, add more tests, improve messages
[cacert-votebot.git] / src / main / java / org / cacert / votebot / shared / exceptions / InvalidChannelName.java
1 /*
2 * Copyright (c) 2015 Felix Doerre
3 * Copyright (c) 2015 Benny Baumann
4 * Copyright (c) 2016, 2018 Jan Dittberner
5 *
6 * This file is part of CAcert VoteBot.
7 *
8 * CAcert VoteBot is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation, either version 3 of the License, or (at your option)
11 * any later version.
12 *
13 * CAcert VoteBot is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * more details.
17 *
18 * You should have received a copy of the GNU General Public License along with
19 * CAcert VoteBot. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 package org.cacert.votebot.shared.exceptions;
23
24 import java.text.MessageFormat;
25 import java.util.ResourceBundle;
26
27 /**
28 * Exception indicating an invalid IRC channel name.
29 *
30 * @author Jan Dittberner
31 */
32 public class InvalidChannelName extends IRCClientException {
33 /**
34 * @param channel channel name
35 */
36 public InvalidChannelName(final String channel) {
37 super(MessageFormat.format(ResourceBundle.getBundle("messages").getString("invalid_channel_name"), channel));
38 }
39 }