// We can only notify of exception if it was a future
if (runnable instanceof RunnableFuture<?>) {
RunnableFuture<?> future = (RunnableFuture<?>)runnable;
ExecutorNotification notifier = notifiers.remove(future);
if (notifier != null) {
notifier.throwableEncountered(throwable);
}
}
else {
// All we can do is log the error since their is no
// way to return this to the user since they don't