Remove infinite loop in AkkaException

This commit is contained in:
Peter Vlugter 2011-04-05 19:07:27 +12:00
parent b3d2cdb174
commit bb55de44a4

View file

@ -23,11 +23,7 @@ import java.net.{InetAddress, UnknownHostException}
val exceptionName = getClass.getName
val uuid = "%s_%s".format(AkkaException.hostname, newUuid)
} with RuntimeException(message) {
override lazy val toString = "%s\n\t[%s]\n\t%s\n\t%s".format(exceptionName, uuid, message, {
val sw = new StringWriter
this.printStackTrace(new PrintWriter(sw))
sw.toString
})
override lazy val toString = "%s\n\t[%s]\n\t%s".format(exceptionName, uuid, message)
}
object AkkaException {