Introducing OnlyCauseStackTrace trait

This commit is contained in:
Viktor Klang 2012-12-20 12:59:48 +01:00
parent 85f80467f4
commit c6878d8f12
3 changed files with 18 additions and 4 deletions

View file

@ -1,6 +1,6 @@
package akka.remote
import akka.AkkaException
import akka.{ OnlyCauseStackTrace, AkkaException }
import akka.actor._
import akka.dispatch.SystemMessage
import akka.event.LoggingAdapter
@ -106,7 +106,7 @@ private[remote] object EndpointWriter {
case object Writing extends State
}
private[remote] class EndpointException(msg: String, cause: Throwable) extends AkkaException(msg, cause) with NoStackTrace {
private[remote] class EndpointException(msg: String, cause: Throwable) extends AkkaException(msg, cause) with OnlyCauseStackTrace {
def this(msg: String) = this(msg, null)
}