InvalidPartnerActorException
org.apache.pekko.stream.InvalidPartnerActorException
final case class InvalidPartnerActorException(expectedRef: ActorRef, gotRef: ActorRef, msg: String) extends IllegalStateException
Stream refs establish a connection between a local and remote actor, representing the origin and remote sides of a stream. Each such actor refers to the other side as its "partner". We make sure that no other actor than the initial partner can send demand/messages to the other side accidentally.
This exception is thrown when a message is received from a non-partner actor, which could mean a bug or some actively malicient behavior from the other side.
This is not meant as a security feature, but rather as plain sanity-check.
Attributes
- Source
- StreamRefs.scala
- Graph
-
- Supertypes
Members list
In this article