001 package org.bukkit.plugin.messaging; 002 003 /** 004 * Thrown if a Plugin attempts to send a message on an unregistered channel. 005 */ 006 @SuppressWarnings("serial") 007 public class ChannelNotRegisteredException extends RuntimeException { 008 public ChannelNotRegisteredException() { 009 this("Attempted to send a plugin message through an unregistered channel."); 010 } 011 012 public ChannelNotRegisteredException(String channel) { 013 super("Attempted to send a plugin message through the unregistered channel `" + channel + "'."); 014 } 015 }