Class InvalidPartnerActorException
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.
Implements
Inherited Members
Namespace: Akka.Streams
Assembly: Akka.Streams.dll
Syntax
public sealed class InvalidPartnerActorException : IllegalStateException, ISerializable
Constructors
| Improve this Doc View SourceInvalidPartnerActorException(IActorRef, IActorRef, String)
Declaration
public InvalidPartnerActorException(IActorRef expectedRef, IActorRef gotRef, string message)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | expectedRef | |
IActorRef | gotRef | |
String | message |
InvalidPartnerActorException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidPartnerActorException class.
Declaration
protected InvalidPartnerActorException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
Properties
| Improve this Doc View SourceExpectedRef
Declaration
public IActorRef ExpectedRef { get; }
Property Value
Type | Description |
---|---|
IActorRef |
GotRef
Declaration
public IActorRef GotRef { get; }
Property Value
Type | Description |
---|---|
IActorRef |