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

/**
 * Thrown if a plugin attempts to register for a reserved channel (such as
 * "REGISTER")
 */
@SuppressWarnings("serial")
public class ReservedChannelException extends RuntimeException {
    public ReservedChannelException() {
        this("Attempted to register for a reserved channel name.");
    }

    public ReservedChannelException(String name) {
        super("Attempted to register for a reserved channel name ('" + name + "')");
    }
}