Bump copyright years
[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 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.util.ResourceBundle;
25
26 /**
27 * Exception indicating an invalid IRC channel name.
28 *
29 * @author Jan Dittberner
30 */
31 public class InvalidChannelName extends IRCClientException {
32 /**
33 * @param channel channel name
34 */
35 public InvalidChannelName(final String channel) {
36 super(String.format(ResourceBundle.getBundle("messages").getString("invalid_channel_name"), channel));
37 }
38 }