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
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 Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
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
-