Interface InvocationListener.OnFailed

All Superinterfaces:
InvocationListener
Enclosing interface:
InvocationListener
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static non-sealed interface InvocationListener.OnFailed extends InvocationListener
When an invocation fails on a BoundInvocable, InvocableDispatcher makes the best effort to call all InvocationListener.OnFailed listeners in turn passing in the failure.

If a InvocationListener.OnFailed throws an exception, the exception will not be propagated. Instead it will be added to the Throwable.getSuppressed() of the invocation failure which will be passed to the next InvocationListener.OnFailed.

After all InvocationListener.OnFailed have been executed, the original invocation failure will be thrown with suppressed exceptions from the listeners.