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
public class ExceptionEvent extends Event
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 includesErrors
andWebSocketExceptions
It is not recommended to simply use this and print each event as some throwables were already logged by JDA. See
isLogged()
.
-
-
Constructor Summary
Constructors Constructor Description ExceptionEvent(JDA api, java.lang.Throwable throwable, boolean logged)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getCause()
The cause Throwable for this eventboolean
isLogged()
Whether this Throwable was already printed using the JDA logging system-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
ExceptionEvent
public ExceptionEvent(@Nonnull JDA api, @Nonnull java.lang.Throwable throwable, boolean logged)
-
-