Merge pull request #971 from akka/wip-2841-remove-stacktraces-√
#2841 – remove stack traces from new remoting exceptions
This commit is contained in:
commit
e6bb697812
3 changed files with 5 additions and 3 deletions
|
|
@ -349,7 +349,7 @@ private[akka] class ServerFSM(val controller: ActorRef, val channel: Channel) ex
|
|||
*/
|
||||
private[akka] object Controller {
|
||||
case class ClientDisconnected(name: RoleName)
|
||||
class ClientDisconnectedException(msg: String) extends AkkaException(msg)
|
||||
class ClientDisconnectedException(msg: String) extends AkkaException(msg) with NoStackTrace
|
||||
case object GetNodes
|
||||
case object GetSockAddr
|
||||
case class CreateServerFSM(channel: Channel)
|
||||
|
|
|
|||
|
|
@ -10,8 +10,9 @@ import akka.util.ByteString
|
|||
import java.util.concurrent.ConcurrentHashMap
|
||||
import scala.concurrent.forkjoin.ThreadLocalRandom
|
||||
import scala.concurrent.{ Future, Promise }
|
||||
import scala.util.control.NoStackTrace
|
||||
|
||||
case class FailureInjectorException(msg: String) extends AkkaException(msg)
|
||||
case class FailureInjectorException(msg: String) extends AkkaException(msg) with NoStackTrace
|
||||
|
||||
class FailureInjectorProvider extends TransportAdapterProvider {
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@ import akka.remote.transport.TestTransport.SwitchableLoggedBehavior
|
|||
import scala.concurrent.{ Await, Promise }
|
||||
import scala.util.Failure
|
||||
import akka.AkkaException
|
||||
import scala.util.control.NoStackTrace
|
||||
|
||||
object SwitchableLoggedBehaviorSpec {
|
||||
object TestException extends AkkaException("Test exception")
|
||||
object TestException extends AkkaException("Test exception") with NoStackTrace
|
||||
}
|
||||
|
||||
class SwitchableLoggedBehaviorSpec extends AkkaSpec with DefaultTimeout {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue