public class PacketRejectedException extends Exception
PacketInterceptor,
Serialized Form| Constructor and Description |
|---|
PacketRejectedException() |
PacketRejectedException(String msg) |
PacketRejectedException(String msg,
Throwable nestedThrowable) |
PacketRejectedException(Throwable nestedThrowable) |
| Modifier and Type | Method and Description |
|---|---|
String |
getRejectionMessage()
Retuns the text to include in a message that will be sent to the sender of the packet
that got rejected or
null if none was defined. |
void |
printStackTrace() |
void |
printStackTrace(PrintStream ps) |
void |
printStackTrace(PrintWriter pw) |
void |
setRejectionMessage(String rejectionMessage)
Sets the text to include in a message that will be sent to the sender of the packet
that got rejected or
null if no message will be sent to the sender of the
rejected packet. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic PacketRejectedException()
public PacketRejectedException(String msg)
public PacketRejectedException(Throwable nestedThrowable)
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream ps)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter pw)
printStackTrace in class Throwablepublic String getRejectionMessage()
null if none was defined. If no text was specified then
no message will be sent to the sender of the rejected packet.null if none was defined.public void setRejectionMessage(String rejectionMessage)
null if no message will be sent to the sender of the
rejected packet. Bt default, no message will be sent.rejectionMessage - the text to include in the notification message for the rejection.Copyright © 2003–2019 Ignite Realtime. All rights reserved.