Tweaking AkkaException
This commit is contained in:
parent
6f05ce1da1
commit
f3af6bdcc7
1 changed files with 3 additions and 6 deletions
|
|
@ -25,14 +25,11 @@ import java.net.{InetAddress, UnknownHostException}
|
|||
|
||||
val uuid = "%s_%s".format(hostname, newUuid)
|
||||
|
||||
override val toString = "%s\n\t[%s]\n\t%s\n\t%s".format(exceptionName, uuid, message, stackTrace)
|
||||
|
||||
val stackTrace = {
|
||||
override val toString = "%s\n\t[%s]\n\t%s\n\t%s".format(exceptionName, uuid, message, {
|
||||
val sw = new StringWriter
|
||||
val pw = new PrintWriter(sw)
|
||||
printStackTrace(pw)
|
||||
printStackTrace(new PrintWriter(sw))
|
||||
sw.toString
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
object AkkaException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue