make actor-related exceptions be case classes for matching

This commit is contained in:
Roland 2012-08-02 14:30:38 +02:00
parent 5ffdd69bce
commit a19df590a7
6 changed files with 54 additions and 25 deletions

View file

@ -148,7 +148,7 @@ class CallingThreadDispatcher(
val queue = mbox.queue
queue.enter
runQueue(mbox, queue)
case x throw new ActorInitializationException("expected CallingThreadMailbox, got " + x.getClass)
case x throw ActorInitializationException("expected CallingThreadMailbox, got " + x.getClass)
}
}