001    package org.bukkit.plugin.messaging;
002    
003    /**
004     * Thrown if a Plugin Channel is too long.
005     */
006    @SuppressWarnings("serial")
007    public class ChannelNameTooLongException extends RuntimeException {
008        public ChannelNameTooLongException() {
009            super("Attempted to send a Plugin Message to a channel that was too large. The maximum length a channel may be is " + Messenger.MAX_CHANNEL_SIZE + " chars.");
010        }
011    
012        public ChannelNameTooLongException(String channel) {
013            super("Attempted to send a Plugin Message to a channel that was too large. The maximum length a channel may be is " + Messenger.MAX_CHANNEL_SIZE + " chars (attempted " + channel.length() + " - '" + channel + ".");
014        }
015    }