Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Exception
    AkkaException
    IllegalStateException
    InvalidPartnerActorException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Streams
    Assembly: Akka.Streams.dll
    Syntax
    public sealed class InvalidPartnerActorException : IllegalStateException, ISerializable

    Constructors

    | Edit this page View Source

    InvalidPartnerActorException(IActorRef, IActorRef, string)

    Declaration
    public InvalidPartnerActorException(IActorRef expectedRef, IActorRef gotRef, string message)
    Parameters
    Type Name Description
    IActorRef expectedRef
    IActorRef gotRef
    string message
    | Edit this page View Source

    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

    | Edit this page View Source

    ExpectedRef

    Declaration
    public IActorRef ExpectedRef { get; }
    Property Value
    Type Description
    IActorRef
    | Edit this page View Source

    GotRef

    Declaration
    public IActorRef GotRef { get; }
    Property Value
    Type Description
    IActorRef

    Implements

    ISerializable

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET