Package net.dv8tion.jda.api.events
Class ExceptionEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.ExceptionEvent
- All Implemented Interfaces:
GenericEvent
Indicates that JDA encountered a Throwable that could not be forwarded to another end-user frontend.
For instance this is fired for events in internal WebSocket handling or audio threads. This includes
For instance this is fired for events in internal WebSocket handling or audio threads. This includes
Errors
and WebSocketExceptions
It is not recommended to simply use this and print each event as some throwables were already logged
by JDA. See isLogged()
.
-
Constructor Summary
-
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Constructor Details
-
ExceptionEvent
-
-
Method Details
-
isLogged
public boolean isLogged()Whether this Throwable was already printed using the JDA logging system- Returns:
- True, if this throwable was already logged
-
getCause
The cause Throwable for this event- Returns:
- The cause
-