Class BusHandlingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.blamejared.crafttweaker.api.event.bus.BusHandlingException
All Implemented Interfaces:
Serializable

public final class BusHandlingException extends RuntimeException
Wraps an exception that has been thrown by an IEventBus while trying to dispatch an event to various listeners.

All Throwables thrown during dispatching are wrapped by this class, with the original exception able to be accessed via original(). Note that the original exception need not match the cause, as the latter correctly records additional handling exceptions that nested event handlers might throw.

Since:
11.0.0
See Also:
  • Method Details

    • original

      public Throwable original()
      Obtains the original exception that caused the handling exception to be thrown initially.

      This exception need not match the cause of the exception.

      Returns:
      The original exception.
      Since:
      11.0.0