Adding NoStackTrace to EndpointException to save a couple of meters of log output.

This commit is contained in:
Viktor Klang 2012-12-20 11:37:29 +01:00
parent 392e6845f4
commit 85f80467f4

View file

@ -12,7 +12,7 @@ import akka.remote.transport.AssociationHandle._
import akka.remote.transport.{ AkkaPduCodec, Transport, AssociationHandle }
import akka.serialization.Serialization
import akka.util.ByteString
import scala.util.control.NonFatal
import util.control.{ NoStackTrace, NonFatal }
/**
* Internal API
@ -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) {
private[remote] class EndpointException(msg: String, cause: Throwable) extends AkkaException(msg, cause) with NoStackTrace {
def this(msg: String) = this(msg, null)
}