public class PacketErrorEvent extends Object implements SessionEvent
| Constructor and Description |
|---|
PacketErrorEvent(Session session,
Throwable cause)
Creates a new SessionErrorEvent instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
call(SessionListener listener)
Calls the event.
|
Throwable |
getCause()
Gets the Throwable responsible for the error.
|
Session |
getSession()
Gets the session involved in this event.
|
void |
setSuppress(boolean suppress)
Sets whether the error should be suppressed.
|
boolean |
shouldSuppress()
Gets whether the error should be suppressed.
|
public Session getSession()
public Throwable getCause()
public boolean shouldSuppress()
public void setSuppress(boolean suppress)
suppress - Whether the error should be suppressed.public void call(SessionListener listener)
SessionEventcall in interface SessionEventlistener - Listener to call the event on.Copyright © 2021. All rights reserved.