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 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 Details

  • 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

      @Nonnull public Throwable getCause()
      The cause Throwable for this event
      Returns:
      The cause