Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
ChannelNameTooLongException.java
1 package org.bukkit.plugin.messaging;
2 
3 /**
4  * Thrown if a Plugin Channel is too long.
5  */
6 @SuppressWarnings("serial")
7 public class ChannelNameTooLongException extends RuntimeException {
9  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.");
10  }
11 
12  public ChannelNameTooLongException(String channel) {
13  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 + ".");
14  }
15 }