final case classInvalidPartnerActorException(expectedRef: ActorRef, gotRef: ActorRef, msg: String) extends IllegalStateException with Product with Serializable
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 recived 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.
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 recived 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.