Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
MessageTooLargeException.java
1 package org.bukkit.plugin.messaging;
2 
3 /**
4  * Thrown if a Plugin Message is sent that is too large to be sent.
5  */
6 @SuppressWarnings("serial")
7 public class MessageTooLargeException extends RuntimeException {
8  public MessageTooLargeException() {
9  this("Attempted to send a plugin message that was too large. The maximum length a plugin message may be is " + Messenger.MAX_MESSAGE_SIZE + " bytes.");
10  }
11 
12  public MessageTooLargeException(byte[] message) {
13  this(message.length);
14  }
15 
16  public MessageTooLargeException(int length) {
17  this("Attempted to send a plugin message that was too large. The maximum length a plugin message may be is " + Messenger.MAX_MESSAGE_SIZE + " bytes (tried to send one that is " + length + " bytes long).");
18  }
19 
20  public MessageTooLargeException(String msg) {
21  super(msg);
22  }
23 }