All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.plugin.messaging.ChannelNameTooLongException Maven / Gradle / Ivy

The newest version!
package org.bukkit.plugin.messaging;

/**
 * Thrown if a Plugin Channel is too long.
 */
@SuppressWarnings("serial")
public class ChannelNameTooLongException extends RuntimeException {
  public ChannelNameTooLongException() {
    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.");
  }

  public ChannelNameTooLongException(String channel) {
    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 + ".");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy