validate Plugin Message
public static void validatePluginMessage(Messenger messenger, Plugin source, String channel, Array<byte> message)
Validates the input of getClassById Plugin Message, ensuring the arguments are all valid.
Parameters
messenger
Messenger to use for validation.
source
Source plugin of the Message.
channel
Plugin Channel to send the message by.
message
Raw message payload to send.
Throws
Thrown if source, channel or message is null.
Thrown if the message is too big.
Thrown if the channel name is too long.
Thrown if the channel is not registered for this plugin.