Skip to content

Commit

Permalink
Fix for #916
Browse files Browse the repository at this point in the history
From commit: 59d81c0
Fixing ticket #916, adding a catch-all logger for exceptions around message processing
  • Loading branch information
pvlugter committed Jun 26, 2011
1 parent ed94159 commit d7b5ee2
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -960,13 +960,17 @@ class RemoteServerHandler(
case _ None
}

private def handleRemoteMessageProtocol(request: RemoteMessageProtocol, channel: Channel) = {
private def handleRemoteMessageProtocol(request: RemoteMessageProtocol, channel: Channel) = try {
request.getActorInfo.getActorType match {
case SCALA_ACTOR dispatchToActor(request, channel)
case TYPED_ACTOR dispatchToTypedActor(request, channel)
case JAVA_ACTOR throw new IllegalActorStateException("ActorType JAVA_ACTOR is currently not supported")
case other throw new IllegalActorStateException("Unknown ActorType [" + other + "]")
}
} catch {
case e: Exception
server.notifyListeners(RemoteServerError(e, server))
EventHandler.error(e, this, e.getMessage)
}

private def dispatchToActor(request: RemoteMessageProtocol, channel: Channel) {
Expand Down

0 comments on commit d7b5ee2

Please sign in to comment.