public class ExceptionEvent extends Event
Errors
and WebSocketExceptions
It is not recommended to simply use this and print each event as some throwables where already logged
by JDA. See isLogged()
.
Constructor and Description |
---|
ExceptionEvent(JDA api,
java.lang.Throwable throwable,
boolean logged) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
The cause Throwable for this event
|
boolean |
isLogged()
Whether this Throwable was already printed using the JDA logging system
|
getJDA, getResponseNumber
public ExceptionEvent(JDA api, java.lang.Throwable throwable, boolean logged)