summaryrefslogtreecommitdiff
path: root/test/disabled/presentation/akka/src/akka/AkkaException.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/disabled/presentation/akka/src/akka/AkkaException.scala')
-rw-r--r--test/disabled/presentation/akka/src/akka/AkkaException.scala40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/disabled/presentation/akka/src/akka/AkkaException.scala b/test/disabled/presentation/akka/src/akka/AkkaException.scala
deleted file mode 100644
index 155a7a16b5..0000000000
--- a/test/disabled/presentation/akka/src/akka/AkkaException.scala
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Copyright (C) 2009-2011 Scalable Solutions AB <http://scalablesolutions.se>
- */
-
-package akka
-
-import akka.actor.newUuid
-import java.net.{ InetAddress, UnknownHostException }
-
-/**
- * Akka base Exception. Each Exception gets:
- * <ul>
- * <li>a uuid for tracking purposes</li>
- * <li>toString that includes exception name, message, uuid, and the stacktrace</li>
- * </ul>
- *
- * @author <a href="http://jonasboner.com">Jonas Bon&#233;r</a>
- */
-class AkkaException(message: String = "", cause: Throwable = null) extends RuntimeException(message, cause) with Serializable {
- val uuid = "%s_%s".format(AkkaException.hostname, newUuid)
-
- override lazy val toString =
- "%s: %s\n[%s]\n%s".format(getClass.getName, message, uuid, stackTraceToString)
-
- def stackTraceToString = {
- val trace = getStackTrace
- val sb = new StringBuffer
- for (i ← 0 until trace.length)
- sb.append("\tat %s\n" format trace(i))
- sb.toString
- }
-}
-
-object AkkaException {
- val hostname = try {
- InetAddress.getLocalHost.getHostName
- } catch {
- case e: UnknownHostException => "unknown"
- }
-}