Fix calls to EventHandler
This commit is contained in:
parent
eee9445be8
commit
cda0c1bbb4
2 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ class ExecutorBasedEventDrivenDispatcher(
|
||||||
try executorService.get() execute invocation
|
try executorService.get() execute invocation
|
||||||
catch {
|
catch {
|
||||||
case e: RejectedExecutionException =>
|
case e: RejectedExecutionException =>
|
||||||
EventHandler notifyListeners EventHandler.Warning(e, this, _name)
|
EventHandler notifyListeners EventHandler.Warning(this, e.toString)
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ final case class FutureInvocation(future: CompletableFuture[Any], function: () =
|
||||||
Right(function.apply)
|
Right(function.apply)
|
||||||
} catch {
|
} catch {
|
||||||
case e: Exception =>
|
case e: Exception =>
|
||||||
EventHandler notifyListeners EventHandler.Error(e, this)
|
EventHandler notifyListeners EventHandler.Error(e, this, e.toString)
|
||||||
Left(e)
|
Left(e)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue