diff options
Diffstat (limited to 'src/actors')
-rw-r--r-- | src/actors/scala/actors/ActorTask.scala | 10 | ||||
-rw-r--r-- | src/actors/scala/actors/UncaughtException.scala | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/src/actors/scala/actors/ActorTask.scala b/src/actors/scala/actors/ActorTask.scala index 2c48725e8e..249c3784a4 100644 --- a/src/actors/scala/actors/ActorTask.scala +++ b/src/actors/scala/actors/ActorTask.scala @@ -35,11 +35,11 @@ private[actors] class ActorTask(actor: Actor, val senderInfo = try { Some(actor.sender) } catch { case _: Exception => None } - val uncaught = new UncaughtException(actor, - if (msg != null) Some(msg) else None, - senderInfo, - currentThread, - e) + val uncaught = UncaughtException(actor, + if (msg != null) Some(msg) else None, + senderInfo, + currentThread, + e) val todo = actor.synchronized { if (!actor.links.isEmpty) diff --git a/src/actors/scala/actors/UncaughtException.scala b/src/actors/scala/actors/UncaughtException.scala index 1829d48606..2b61b1ad7a 100644 --- a/src/actors/scala/actors/UncaughtException.scala +++ b/src/actors/scala/actors/UncaughtException.scala @@ -13,17 +13,18 @@ package scala.actors * * @param actor the actor that threw the exception * @param message the message the actor was processing, or None if no message (e.g. on initial startup) + * @param sender the sender of the most recent message * @param thread the thread on which the actor was running * @param cause the uncaught exception * * @author Philipp Haller * @author Erik Engbrecht */ -class UncaughtException[Msg >: Null](val actor: Reactor[Msg], - val message: Option[Msg], - val sender: Option[OutputChannel[Any]], - val thread: Thread, - cause: Throwable) +case class UncaughtException(actor: Actor, + message: Option[Any], + sender: Option[OutputChannel[Any]], + thread: Thread, + cause: Throwable) extends Exception(cause) { override def toString() = |