summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/plugin/messaging/ChannelNotRegisteredException.java
blob: c3a797dc0f5ec30d698b1759cdd43ddaeab747fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package org.bukkit.plugin.messaging;

/**
 * Thrown if a Plugin attempts to send a message on an unregistered channel.
 */
@SuppressWarnings("serial")
public class ChannelNotRegisteredException extends RuntimeException {
    public ChannelNotRegisteredException() {
        this("Attempted to send a plugin message through an unregistered channel.");
    }

    public ChannelNotRegisteredException(String channel) {
        super("Attempted to send a plugin message through an unregistered channel ('" + channel + "'.");
    }
}