Minor cleanup

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2012-01-17 19:35:28 +01:00
parent 85c66fd6f3
commit 33f366c08d
10 changed files with 10 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ 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.");

View File

@@ -3,6 +3,7 @@ package org.bukkit.plugin.messaging;
/**
* Thrown if a Plugin attempts to send a message on an unregistered channel.
*/
@SuppressWarnings("serial")
public class ChannelNotRegisteredException extends RuntimeException {
public ChannelNotRegisteredException() {
this("Attempted to send a plugin message through an unregistered channel.");

View File

@@ -3,6 +3,7 @@ package org.bukkit.plugin.messaging;
/**
* Thrown if a Plugin Message is sent that is too large to be sent.
*/
@SuppressWarnings("serial")
public class MessageTooLargeException extends RuntimeException {
public MessageTooLargeException() {
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.");

View File

@@ -3,6 +3,7 @@ package org.bukkit.plugin.messaging;
/**
* Thrown if a plugin attempts to register for a reserved channel (such as "REGISTER")
*/
@SuppressWarnings("serial")
public class ReservedChannelException extends RuntimeException {
public ReservedChannelException() {
this("Attempted to register for a reserved channel name.");