Changed API for EventHandler and added support for log levels

This commit is contained in:
Jonas Bonér 2011-03-14 10:45:49 +01:00
parent 39caa297ac
commit f8ce3d541e
16 changed files with 69 additions and 35 deletions

View file

@ -208,10 +208,10 @@ class BoundedExecutorDecorator(val executor: ExecutorService, bound: Int) extend
})
} catch {
case e: RejectedExecutionException =>
EventHandler notifyListeners EventHandler.Warning(this, e.toString)
EventHandler notify EventHandler.Warning(this, e.toString)
semaphore.release
case e: Throwable =>
EventHandler notifyListeners EventHandler.Error(e, this)
EventHandler notify EventHandler.Error(e, this)
throw e
}
}