Updating to Scala 2.9.0, SJSON still needs to be released for 2.9.0-SNAPSHOT tho

This commit is contained in:
Viktor Klang 2011-03-22 14:21:03 +01:00
parent 2a516beac3
commit c337fdd7d9
3 changed files with 10 additions and 12 deletions

View file

@ -19,15 +19,13 @@ import java.net.{InetAddress, UnknownHostException}
*
* @author <a href="http://jonasboner.com">Jonas Bon&#233;r</a>
*/
@serializable abstract class AkkaException(message: String) extends RuntimeException(message) {
import AkkaException._
@serializable abstract class AkkaException(message: String) extends {
val exceptionName = getClass.getName
val uuid = "%s_%s".format(hostname, newUuid)
override val toString = "%s\n\t[%s]\n\t%s\n\t%s".format(exceptionName, uuid, message, {
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
printStackTrace(new PrintWriter(sw))
this.printStackTrace(new PrintWriter(sw))
sw.toString
})
}