Package dev.latvian.mods.kubejs.event
Interface EventExceptionHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionhandle(KubeEvent event, EventHandlerContainer container, Throwable ex) Handles an exception thrown by an event handler.
-
Method Details
-
handle
Handles an exception thrown by an event handler.- Parameters:
event- The event being postedcontainer- The event handler container that threw the exceptionex- The exception that was thrown- Returns:
nullif the exception could be recovered from, otherwise the exception that should be rethrown
-