Class ExceptionEvent

All Implemented Interfaces:

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
      True, if this throwable was already logged
    • getCause

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