Changed UnknownRemoteException to CannotInstantiateRemoteExceptionDueToRemoteProtocolParsingErrorException - should be more clear now.

This commit is contained in:
Jonas Bonér 2011-03-25 16:25:36 +01:00
parent 0d23cf157a
commit e6c658f58d
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ class RemoteClientException private[akka] (
/**
* Returned when a remote exception sent over the wire cannot be loaded and instantiated
*/
case class UnknownRemoteException private[akka] (cause: Throwable, originalClassName: String, originalMessage: String)
case class CannotInstantiateRemoteExceptionDueToRemoteProtocolParsingErrorException private[akka] (cause: Throwable, originalClassName: String, originalMessage: String)
extends AkkaException("\nParsingError[%s]\nOriginalException[%s]\nOriginalMessage[%s]"
.format(cause.toString, originalClassName, originalMessage)) {
override def printStackTrace = cause.printStackTrace

View file

@ -546,7 +546,7 @@ class ActiveRemoteClientHandler(
} catch {
case problem: Throwable =>
EventHandler.error(problem, this, problem.getMessage)
UnknownRemoteException(problem, classname, exception.getMessage)
CannotInstantiateRemoteExceptionDueToRemoteProtocolParsingErrorException(problem, classname, exception.getMessage)
}
}
}